Namespace: Date

jMod.API. Date

Since:
  • 0.0.14

Members

staticjMod.API.Date.nowobject

Returns the current time

Methods

staticjMod.API.Date.getScriptTimeDiff(dateObj){TimeDiff}

F:/Projects/jMod/main/bin/jMod.full.js, line 4655
Get the time since the last update (meta key: scriptUploadTimestamp)
Name Type Description
dateObj string | object date string or object returned by update request
Returns:
Type Description
TimeDiff

staticjMod.API.Date.parseUTCDate(value){object}

F:/Projects/jMod/main/bin/jMod.full.js, line 4625
Parses the UTC date returned when doing an update check (meta key: scriptUploadTimestamp)
Name Type Description
value string | date date to parse
Returns:
Type Description
object date object in the local time-zone