Summary

Unit Posix time/date behaviors differ across operating systems

Metadata

Description

Procedures seconds->local-time and string->time produce different results on (Arch) Linux vs OS X. Windows behavior is unknown. This likely reflects a difference in the behavior of strptime on the two systems---see:

[[http://stackoverflow.com/questions/31984002/why-does-strptime-behave-differently-on-osx-and-on-linux]|]

Giving a fully specified and unambiguous time string in Chicken does not fix this problem. For example,

 (string->time "2015-08-25 12:00:00 EDT" "%Y-%m-%d %H:%M:%S %Z")

returns different vectors on OS X vs Linux.

Changes and comments

[2015-08-28 18:38:51 UTC] mario changed component from unknown to core libraries

[2016-08-25 21:44:33 UTC] sjamaan set difficulty to insane

[2016-08-25 21:44:33 UTC] sjamaan wrote:

Because POSIX

[2026-07-08 21:11:20 UTC] felix wrote:

note that windows has no strptime at all.