0.1.2 • Published 2 years ago

@ematea/em-time v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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>
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago