Skip to content

Comment on Ask HN: What timezone should I use?

Comments

You want to use UTC and convert it to your local timezone using functionality provided in most of todays languages.

For example, in PHP, you could use gmdate('Y-m-d H:i:s') to get the current time/date in UTC.

In Python, you could use datetime.datetime.utcnow().

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.