Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional time to dates #27

Open
cblp opened this issue Jan 9, 2018 · 0 comments
Open

Add optional time to dates #27

cblp opened this issue Jan 9, 2018 · 0 comments

Comments

@cblp
Copy link
Member

cblp commented Jan 9, 2018

Probable solution:

-- | Day and Maybe Time
type DMT = Either Day UTCTime

Day is treated in current time zone, UTCTime is UTC

With timezone

use a string. Specifically, use the full qualified name in the Olson database, so something like Australia/Adelaide or America/Los_Angeles. These are standardized descriptors of the timezones used in the world, and you can use these in pretty much every programming language ever used in the last few decades.

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

https://zachholman.com/talk/utc-is-enough-for-everyone-right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant