mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
|
|
/*
|
|
The API is the same for both client-side and server-side users.
|
|
|
|
For server-side users include the module as external module:
|
|
|
|
import ISO8601Localizer = require('iso8601-localizer');
|
|
|
|
For client-side users include the module as internal module as shown below:
|
|
*/
|
|
|
|
/// <reference path="iso8601-localizer.d.ts" />
|
|
|
|
new ISO8601Localizer('2015-06-02T14:13:12').localize();
|
|
|
|
new ISO8601Localizer('2015-06-02T14:13:12').to(-5).localize();
|
|
|
|
new ISO8601Localizer('2015-06-02T14:13:12').to(-5).returnAs('object').localize(); |