All files / src getHundredsOfNanosecondsSinceGregorianReform.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 104x   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;