Skip to content

Commit b6f3c6e

Browse files
committed
1 parent 400c6aa commit b6f3c6e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

author/topics/document-format/text.adoc

+22
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Where:
128128
--
129129
====
130130

131+
== Semantic elements
131132

132133
=== Identifier
133134

@@ -208,6 +209,27 @@ rendering.
208209
NOTE: Only certain Metanorma flavors support enhanced rendering for
209210
semantically-tagged content.
210211

212+
=== Dates
213+
214+
The `date` command is used to introduce dates and date-times as semantic
215+
elements [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.4.5].
216+
The value of the `date:[]` macro is an ISO-8601 formatted date or date-time.
217+
The second argument given in the macro, if present, is a
218+
https://ruby-doc.org/stdlib-3.0.0/libdoc/date/rdoc/DateTime.html#method-i-strftime[`strftime` formatting description
219+
of the date]. (Space can be specified as `%_`.)
220+
Month and day names and abbreviations, if requested in the formatting string, are internationalised
221+
to the document language.
222+
223+
[source,asciidoctor]
224+
----
225+
date[2012-02-02]
226+
date[2012-02-02, %F]
227+
date[2012-02-02, %A %d %B] # Thursday 2 February
228+
date[2012-02-02T21:04:05, %F%_%l%_%p]
229+
----
230+
231+
== Other
232+
211233

212234
=== Nesting of styles
213235

0 commit comments

Comments
 (0)