2014-10-13 18:08:28 +02:00
caption: now
2014-10-08 17:46:34 +01:00
created: 20141008141616791
2015-02-24 17:41:16 +01:00
modified: 20150221170300000
tags: Macros [[Core Macros]]
title: now Macro
2014-10-08 17:46:34 +01:00
type: text/vnd.tiddlywiki
2015-02-24 17:41:16 +01:00
The <<.def now>> [[macro|Macros]] returns the current date and time in a specified [[format|DateFormat]].
2014-10-08 17:46:34 +01:00
2015-02-24 17:41:16 +01:00
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.
2014-10-08 17:46:34 +01:00
2015-02-24 17:41:16 +01:00
!! Parameters
2014-10-08 17:46:34 +01:00
2015-02-24 17:41:16 +01:00
;format
: A string specifying the desired [[format|DateFormat]], defaulting to `0hh:0mm, DDth MMM YYYY`
2014-10-08 17:46:34 +01:00
2015-02-24 17:41:16 +01:00
<<.macro-examples "now">>