senses:packages:kmj-datetime
Differences
This shows you the differences between two versions of the page.
senses:packages:kmj-datetime [2025/07/28 01:55] – created flash | senses:packages:kmj-datetime [2025/07/28 03:27] (current) – args & rets on same level as syntax flash | ||
---|---|---|---|
Line 13: | Line 13: | ||
now(): (timestamp: number) | now(): (timestamp: number) | ||
- | === Arguments === | + | ==== Arguments |
//This function takes no arguments.// | //This function takes no arguments.// | ||
- | === Return values | + | ==== Returns ==== |
- The first return value contains the current time in milliseconds since January 1st, 1970 at 12:00 AM UTC. | - The first return value contains the current time in milliseconds since January 1st, 1970 at 12:00 AM UTC. | ||
Line 29: | Line 29: | ||
fromISO8601(iso8601str: | fromISO8601(iso8601str: | ||
- | === Arguments === | + | ==== Arguments |
- The first argument should contain the ISO8601 string representation of the timestamp. | - The first argument should contain the ISO8601 string representation of the timestamp. | ||
- | === Return values | + | ==== Returns ==== |
- The first return value will contain the amount of milliseconds since January 1st, 1970 at 12:00 AM UTC that the timestamp represents, or '' | - The first return value will contain the amount of milliseconds since January 1st, 1970 at 12:00 AM UTC that the timestamp represents, or '' | ||
Line 45: | Line 45: | ||
toISO8601(timestamp: | toISO8601(timestamp: | ||
- | === Arguments === | + | ==== Arguments |
- The first argument should contain the amount of milliseconds since January 1st, 1970 at 12:00 AM UTC that must be converted to a ISO8601 string. | - The first argument should contain the amount of milliseconds since January 1st, 1970 at 12:00 AM UTC that must be converted to a ISO8601 string. | ||
- | === Return values | + | ==== Returns ==== |
- The first return value will be an ISO8601 Zulu string representing the given numeric timestamp. | - The first return value will be an ISO8601 Zulu string representing the given numeric timestamp. | ||
senses/packages/kmj-datetime.txt · Last modified: by flash