Jacob Pratt on Nostr: Fun fact: in the time crate, PrimitiveDateTime and OffsetDateTime are internally the ...
Fun fact: in the time crate, PrimitiveDateTime and OffsetDateTime are internally the exact same type, just having different generics. When tzdb is integrated, ZonedDateTime will act the same way.
#Rust #RustLang
Published at
2023-12-19 07:46:31Event JSON
{
"id": "635a0b3ab9193ebd1dd45d260d2f76e4801b545b8b70b1f9fd6e8c4118de486e",
"pubkey": "005d048f71e97b36f3e22c3bd9ba568bdec4254bfc8792f37e80169a68d1eba6",
"created_at": 1702971991,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://mastodon.social/users/jhpratt/statuses/111605972421456051",
"activitypub"
]
],
"content": "Fun fact: in the time crate, PrimitiveDateTime and OffsetDateTime are internally the exact same type, just having different generics. When tzdb is integrated, ZonedDateTime will act the same way.\n\n#Rust #RustLang",
"sig": "c7006a1563bbf1eddcd75452a3901706b5c43da374729d7074b762cf980484a62de75a3af5e969e6d096f208a9da4b3eeb2310f06f88403207622d5cb6741e6d"
}