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 () => {
|
2018-10-21 15:23:58 +00:00
|
|
|
const extendedDate = smarttime.ExtendedDate.fromEuropeanDate('1.6.2018');
|
2018-10-16 23:42:36 +00:00
|
|
|
console.log(extendedDate);
|
|
|
|
});
|
|
|
|
|
2018-10-21 10:12:44 +00:00
|
|
|
tap.test('should create a date and time with European Format', async () => {
|
2018-11-23 17:29:38 +00:00
|
|
|
const extendedDate = smarttime.ExtendedDate.fromEuropeanDateAndTime(
|
|
|
|
'9.8.2018',
|
|
|
|
'08:00:00',
|
|
|
|
'Europe/Berlin'
|
|
|
|
);
|
2018-10-21 10:12:44 +00:00
|
|
|
console.log(extendedDate);
|
2018-11-23 17:29:38 +00:00
|
|
|
});
|
2018-10-21 10:12:44 +00:00
|
|
|
|
2018-10-16 23:42:36 +00:00
|
|
|
tap.start();
|