-
Notifications
You must be signed in to change notification settings - Fork 13
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
Simplify Date.DateTime #74
Labels
imap
For IMAP issues.
Comments
Also used in the |
@danieleggert just to confirm, when parsing we'd have to parse, e.g., "JUNE" and convert to "6"? |
I’d go for These are not dates meant for UI — hence the name. |
Davidde94
pushed a commit
that referenced
this issue
Jun 15, 2020
* Simplify Date.DateTime -> use InternalDate Fixes #74 * Changes according to feedback from @Davidde94 * Fix code style. * More cleanup.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we change the format of
Date.DateTime
to be something likei.e. flatten it and simplify using the components?
Maybe move it out of
Date
such that it’s simplyDateTime
? IIRC this is only used forINTERNALDATE
and if so, maybe rename it toInternalDate
?The storage can be way more compact that 7
Int
, it can in fact fit into a single 64 bit value.We used to use this code:
and
to convert between the
day
,month
,year
,hour
,minute
,seconds
,zone
set and a singleUInt64
for compact storage. But we could probably use something better / more performant.The text was updated successfully, but these errors were encountered: