Repository navigation
Calendar
imshooter edited this page Nov 26, 2026
·
1 revision
GetTimestampDate, GetTimestampTime and GetTimestampWeekday read a timestamp as the clocks of a zone show it.
MakeTimestamp gives the timestamp of a date and a time of day. A value past its range carries over, so day 0 is the last day of the month before, and month 13 is January of the next year:
new const
Timestamp:newYear = MakeTimestamp(2027, 1, 1)
;AddTimestampMonths, and the operators with Months and Years, keep the day of the month and the time of day. A day the month does not have becomes its last:
| Timestamp | Moved by | Gives |
|---|---|---|
| January 31st | Months:1 |
February 28th, or the 29th in a leap year |
| March 31st | Months:1 |
April 30th |
| February 29th | Months:1 |
March 29th |
| February 29th | Years:1 |
February 28th |
Chrono 0.2.0 · Repository · Releases · MIT License
Guides
Reference
Functions