Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


senses:packages:kmj-datetime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

senses:packages:kmj-datetime [2025/07/28 01:55] – created flashsenses: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: string): (timestamp: number|nil)   fromISO8601(iso8601str: string): (timestamp: number|nil)
  
-=== 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 ''nil'' if the string could not be understood.   - The first return value will contain the amount of milliseconds since January 1st, 1970 at 12:00 AM UTC that the timestamp represents, or ''nil'' if the string could not be understood.
Line 45: Line 45:
   toISO8601(timestamp: number): (iso8601str: string)   toISO8601(timestamp: number): (iso8601str: string)
  
-=== 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