mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 02:20:28 +00:00
4db950cc45
* Add ability to now macro to return same UTC string used in the modified and created fields.
* Revert "Add ability to now macro to return same UTC string used in the modified and created fields."
This reverts commit 7b6ad7db4a
.
* Mods to formatDateString to adjust displayed date to UTC for [UTC]
format. Corresponding doc changes, and optimization for special
case.
21 lines
791 B
Plaintext
21 lines
791 B
Plaintext
caption: now
|
|
created: 20141008141616791
|
|
modified: 20170630223406157
|
|
tags: Macros [[Core Macros]]
|
|
title: now Macro
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The <<.def now>> [[macro|Macros]] returns the current date and time in a specified [[format|DateFormat]].
|
|
|
|
The value doesn't update automatically, like a ticking clock. It updates whenever the macro call is rendered, such as when the containing tiddler's display needs to be refreshed for some other reason.
|
|
|
|
!! Parameters
|
|
|
|
;format
|
|
: A string specifying the desired [[format|DateFormat]], defaulting to `0hh:0mm, DDth MMM YYYY`
|
|
|
|
''Note'': The format string `[UTC]YYYY0MM0DD0hh0mm0ssXXX` will return a date string representing the UTC time-stamp as it is used in the ~TiddlyWiki `created` and `modified` time-stamp fields.
|
|
|
|
|
|
<<.macro-examples "now">>
|