Summary
Unit Posix time/date behaviors differ across operating systems
Metadata
- Id: 1f8253620c1177e0d40c2647efed08386fe8f50d
- Trac id: 1217
- Type: defect
- Reporter: nemo
- Owner:
- Cc:
- Status: new
- Component: core libraries
- Estimated difficulty: insane
- Resolution:
- Priority: major
- Milestone: someday
- Version: 4.9.x
- Changetime: 2026-07-08 21:11:20 UTC
- Created: 2015-08-28 15:17:10 UTC
- Keywords: posix time date
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.