UNPKG
vtseditor
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
VTS Editor
github.com/stefanwerfling/vtseditor
stefanwerfling/vtseditor
vtseditor
/
SchemaUtil
/
SchemaDateUtil.ts
10 lines
(7 loc)
•
265 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
class
SchemaDateUtil
{
public
static
getTimestamp
():
string
{
const
now =
new
Date
();
const
ms = now.
getMilliseconds
().
toString
().
padStart
(
3
,
'0'
);
return
`
${now.toISOString().replace(
'T'
,
' '
).replace(
'Z'
,
''
)}
.
${ms}
`
; } }