authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-09-12 20:56:00-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-09-12 20:56:00-07:00
log299caafd5e562865c81a64d5c5531b630175bc91
tree7af68f5709dcc45356395e8cf5d38642276e8e8e
parentcacde79ed6c866a370dd58f97ed1baa31b0b2c35
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add other types from temporal model


1 files changed, 33 insertions(+), 0 deletions(-)

time.zig+33
...@@ -461,6 +461,39 @@ pub const DateTime = struct {...@@ -461,6 +461,39 @@ pub const DateTime = struct {
461 }461 }
462};462};
463463
464pub const PlainYearMonth = struct {
465 years: u16,
466 months: u8,
467};
468
469pub const PlainMonthDay = struct {
470 months: u8,
471 days: u8,
472};
473
474pub const PlainDate = struct {
475 years: u16,
476 months: u8,
477 days: u8,
478};
479
480pub const PlainTime = struct {
481 hours: u8,
482 minutes: u8,
483 seconds: u8,
484 ms: u16,
485};
486
487pub const PlainDateTime = struct {
488 years: u16,
489 months: u8,
490 days: u8,
491 hours: u8,
492 minutes: u8,
493 seconds: u8,
494 ms: u16,
495};
496
464pub const format = struct {497pub const format = struct {
465 pub const LT = "h:mm A";498 pub const LT = "h:mm A";
466 pub const LTS = "h:mm:ss A";499 pub const LTS = "h:mm:ss A";