use timestamp to display time
timestamp-time
use timestamp to display date/time
usage <timestamp-time></timestamp-time>
<timestamp-time utc type="Date" timestamp="1498312215357"></timestamp-time>
Attribute | Datatype | Description |
---|---|---|
utc (optional) | Boolean |
shows UTC date/time if attribute is present |
type (optional) | String |
date or time , if we want Date or Time, else Full String |
timestamp Required | Number |
Timestamp you want to convert, Or else it'll take current time |