2.1.2 • Published 6 years ago

to-iso-string-x v2.1.2

Weekly downloads
247
License
MIT
Repository
github
Last release
6 years ago

to-iso-string-x

Cross-browser toISOString support.

module.exportsstring

This method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z".

Kind: Exported member
Returns: string - Given date in the ISO 8601 format according to universal time.
Throws:

  • TypeError If date is not a Date object.
  • RangeError If date is invalid.
ParamTypeDescription
dateObjectA Date object.

Example

import toISOString =from 'to-iso-string-x';

toISOString(new Date(0)); // '1970-01-01T00:00:00.000Z'
2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.15

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago