Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {
Interval,
} = require('@js-joda/extra');
const {
Duration,
Instant,
LocalDateTime,
ZonedDateTime,
ZoneId,
} = require('@js-joda/core');
console.log(LocalDateTime.now().toString());
console.log(ZonedDateTime.now().toString());
console.log(ZonedDateTime.now(ZoneId.of('America/New_York')).toString());
console.log(Interval.of(Instant.now(), Duration.ofMinutes(1)).toString());
console.log('node-modules-01 done');
Duration,
Instant,
LocalDateTime,
ZonedDateTime,
ZoneId,
} = require('@js-joda/core');
require('@js-joda/timezone');
const {
Interval,
} = require('@js-joda/extra');
console.log(LocalDateTime.now().toString());
console.log(ZonedDateTime.now().toString());
console.log(ZonedDateTime.now(ZoneId.of('America/New_York')).toString());
console.log(Interval.of(Instant.now(), Duration.ofMinutes(1)).toString());
console.log('node-modules-02 done');
Instant,
LocalDate,
LocalDateTime,
ZonedDateTime,
ZoneId,
} from '@js-joda/core';
import {
Interval,
} from '@js-joda/extra';
import '@js-joda/timezone';
console.log(LocalDate.now().until(LocalDate.now().plusDays(10), ChronoUnit.DAYS));
console.log(LocalDateTime.now().toString());
console.log(ZonedDateTime.now().toString());
console.log(ZonedDateTime.now(ZoneId.of('America/New_York')).toString());
console.log(Interval.of(Instant.now(), Duration.ofMinutes(1)).toString());
console.log('es6-modules-01 done');
Instant,
LocalDate,
LocalDateTime,
ZonedDateTime,
ZoneId,
} from '@js-joda/core';
import {
Interval,
} from '@js-joda/extra';
import '@js-joda/timezone';
console.log(LocalDate.now().until(LocalDate.now().plusDays(10), ChronoUnit.DAYS));
console.log(LocalDateTime.now().toString());
console.log(ZonedDateTime.now().toString());
console.log(ZonedDateTime.now(ZoneId.of('America/New_York')).toString());
console.log(Interval.of(Instant.now(), Duration.ofMinutes(1)).toString());
console.log('webpack-index done');