2018-10-16 23:42:36 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
|
|
|
|
|
|
|
import * as smarttime from '../ts/index';
|
|
|
|
|
|
|
|
tap.test('should create a valid JavaScript Date from European TimeStamp', async () => {
|
|
|
|
const extendedDate = smarttime.ExtendedDate.fromEuropeanDate('10.10.2018');
|
|
|
|
console.log(extendedDate);
|
|
|
|
});
|
|
|
|
|
2018-10-21 10:12:44 +00:00
|
|
|
tap.test('should create a date and time with European Format', async () => {
|
|
|
|
const extendedDate = smarttime.ExtendedDate.fromEuropeanDateAndTime('10.10.2018', '08:00:00', 'Europe/Berlin');
|
|
|
|
console.log(extendedDate);
|
|
|
|
})
|
|
|
|
|
2018-10-16 23:42:36 +00:00
|
|
|
tap.start();
|