mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Improve comments
This commit is contained in:
parent
d0db2221d3
commit
48402ed329
@ -228,7 +228,7 @@ $tw.utils.pad = function(value,length) {
|
||||
return s;
|
||||
};
|
||||
|
||||
// Convert a date into YYYYMMDDHHMM format
|
||||
// Convert a date into UTC YYYYMMDDHHMM format
|
||||
$tw.utils.stringifyDate = function(value) {
|
||||
return value.getUTCFullYear() +
|
||||
$tw.utils.pad(value.getUTCMonth() + 1) +
|
||||
@ -237,7 +237,7 @@ $tw.utils.stringifyDate = function(value) {
|
||||
$tw.utils.pad(value.getUTCMinutes());
|
||||
};
|
||||
|
||||
// Parse a date from a YYYYMMDDHHMMSSMMM format string
|
||||
// Parse a date from a UTC YYYYMMDDHHMMSSMMM format string
|
||||
$tw.utils.parseDate = function(value) {
|
||||
if(typeof value === "string") {
|
||||
return new Date(Date.UTC(parseInt(value.substr(0,4),10),
|
||||
|
Loading…
Reference in New Issue
Block a user