DateTime - MrKaszeba19/PapajLang GitHub Wiki
DateTime is an entity type used in PapajScript. It is an entity type dedicated for storing datetime values.
History
Its debut was on November 15, 2020.
Features
- DateTime requires Date package to work with it.
- In order to obtain DateTime entity, you can use the
Date.toDateTimefunction to either convert a string containing encoded date or convert a real number containing Unix timestamp - DateTime is stored as a Unix timestamp. However, it stores milliseconds too.
Examples
"2005-04-02 21:37:00" Date.toDateTime2147483647 Date.toDateTimeDate.now,Date.tomorrow,Date.today,Date.yesterday