Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

Timestamps

TiddlyWiki Community Wiki

Jump to: navigation, search

Several macros take a date format string as an optional argument. This string can be a combination of ordinary text and special characters that are substituted by parts of the date:

Code Output
DDD day of week in full (e.g. "Monday")
ddd day of week in short (e.g. "Mon")
DD day of month, without leading zero
0DD day of month, with leading zero if necessary
DDth day of month with suffix
WW ISO-8601 week number of year, without leading zero
0WW ISO-8601 week number, with leading zero if necessary
MMM month in full (e.g. "July")
mmm short month (e.g. "Jul")
MM month number, without leading zero
0MM month number, with leading zero if necessary
YYYY four-digit year number
YY two-digit year
wYYYY four-digit year number with respect to week number
wYY two-digit year with respect to week number
hh hours, 24-hour format, without leading zero
0hh hours, 24-hour format, with leading zero if necessary
hh12 hours, 12-hour format, without leading zero
0hh12 hours, 12-hour format, with leading zero if necessary
mm minutes, without leading zero
0mm minutes, with leading zero if necessary
ss seconds, without leading zero
0ss seconds, with leading zero if necessary
am or pm lowercase AM/PM indicator
AM or PM uppercase AM/PM indicator
Personal tools