Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
davel [he/him]@lemmy.ml to Unix@lemmy.mlEnglish · 2 years ago

time_t is not GMT

www.jwz.org

external-link
message-square
0
link
fedilink
1
external-link

time_t is not GMT

www.jwz.org

davel [he/him]@lemmy.ml to Unix@lemmy.mlEnglish · 2 years ago
message-square
0
link
fedilink
When I hear someone say "a Unix timestamp is in GMT" I die a little inside. It is muddy thinking that leads to many of the problems that plague this modern world. A time_t does not have a time zone at all. It is a point in time, a scalar value. A 'struct tm' is a point in spacetime, a vector value. If you are trying to express a point in time to a human, you could do that by saying ...
alert-triangle
You must log in or # to comment.

Unix@lemmy.ml

unix@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !unix@lemmy.ml

This is a community discussing Unix, unix-based, and unix-like operating systems.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 4 users / 6 months
  • 1 local subscriber
  • 328 subscribers
  • 28 Posts
  • 0 Comments
  • Modlog
  • mods:
  • ysu@lemmy.ml
  • UI: 0.19.13
  • BE: 0.19.13-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org