Jump to content

Module:Now/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JPxG (talk | contribs) at 18:17, 13 February 2024 (Created page with '{{Module rating|<!-- Values: pre-alpha • alpha • beta • release • protected • semiprotected -- If a rating not needed/relevant, delete this template call -->}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> # Returns the current timestamp. # ??? # Profit! Because this is a module, it actually executes on each page load, meaning you can avoid the caching issues that sometimes arise from determining...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
  1. Returns the current timestamp.
  2. ???
  3. Profit!

Because this is a module, it actually executes on each page load, meaning you can avoid the caching issues that sometimes arise from determining the current time using a template (i.e. {{#time:Y-m-d h:i:s|now}}, which returns "2025-05-24 12:24:23").

You can format its output using other templates or modules.


Usage

{{#invoke:now|main}}