Timestamp
Installation
Usage
<rh-timestamp></rh-timestamp>
rh-timestamp
None
DOM Property | Description | Type | Default |
---|---|---|---|
dateFormat |
Custom date formatting style. See MDN for options. |
|
|
timeFormat |
Custom time formatting style. See MDN for options. |
|
|
displaySuffix |
Text to display after the timestamp |
|
|
locale |
Overrides the runtime's default locale |
|
|
relative |
Formats a timestamp in realtive terms |
|
|
utc |
Sets the timezone as UTC |
|
|
hour12 |
Whether to use 12-hour time (as opposed to 24-hour time) |
|
|
date |
A string value representing a date |
|
|
None
None
None
None
None
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.