senses:packages:kmj-datetime
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| senses:packages:kmj-datetime [2025/07/28 01:55] – created flash | senses:packages:kmj-datetime [2026/04/27 00:21] (current) – removed lie flash | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The kmj-datetime package provides additional date/time handling functions to account for shortcomings with the date/time functions that are a part of the Lua '' | The kmj-datetime package provides additional date/time handling functions to account for shortcomings with the date/time functions that are a part of the Lua '' | ||
| - | |||
| - | The runtime provides this library through the [[https:// | ||
| ===== now ===== | ===== now ===== | ||
| Line 13: | Line 11: | ||
| 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 27: | ||
| 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 43: | ||
| 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.1753667704.txt.gz · Last modified: by flash
