1 2 3 4 5 6 7 8 9 10 | 4x 2x 4x | export const getHundredsOfNanosecondsSinceGregorianReform = (): number => ( /* Months start at 0, so 9 is October. */ (new Date().getTime() - new Date(1582, 9, 15).getTime()) * /* Javascript returns only microseconds, so the value has to be increased * an order of magnitude. */ 10 ); export default getHundredsOfNanosecondsSinceGregorianReform; |