Skip to content

Instantly share code, notes, and snippets.

@ksummerlin
Created May 1, 2013 14:50
Show Gist options
  • Save ksummerlin/5495712 to your computer and use it in GitHub Desktop.
Save ksummerlin/5495712 to your computer and use it in GitHub Desktop.
The concept of a static constructor does not exist in the TypeScript language (as of v0.8.3)
class Foo {
static baseTime: Date;
static constructor() {
Foo.baseTime = new Date();
Foo.baseTime.setMilliseconds(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment