@ematea/em-time
v0.1.2
Published
Represents a time written in Ematean format
Downloads
4
Readme
The em-time Element
Represents a time written in Ematean format. Emateans usually write time in one of three ways:
- Date only: 2084-06-14
- Time only: T 15:30:00
- Full Format: 2084-06-14 T 15:30:00
The small "T" is understood to indicate a time and is usually written smaller than the surrounding text.
The party is at <em-time>2084-10-01 T 18:00:00</em-time>!
Usage
Can use any of the normal formats:
<p>Date: <em-time>2084-10-01</em-time></p>
<p>Time: <em-time>T 18:00:00</em-time></p>
<p>Full: <em-time>2084-10-01 T 18:00:00</em-time></p>
If an invalid format is used, it'll "just work", but without special formatting.
<p>Invalid: <em-time>December</em-time></p>