Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2438 tags...
Name<TimeTag.format[(<format>)]>
ReturnsElementTag
DescriptionReturns the time, formatted to the date format specification given.
If no format input is given, uses "yyyy/MM/dd HH:mm:ss".
The optional input to this tag uses semi-standard date format symbols, such as 'yyyy' to mean a 4-digit year or 'MM' to mean a 2-digit month.
There are a variety of additional symbols accepted, as listed under "Patterns for Formatting and Parsing" on 🔗https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html.
Generated Example
- narrate <util.time_now.format>
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/TimeTag.java#L698