A day of the month: 1-31 depending on the month
Hour of the day in 24 time: 0-23
Millisecond of the second: 0-999
Minute of the hour: 0-59
A month of the year: 1-12
The full, four digit year.
import {toNewTimezone} from 'date-vir';
const exampleDate: FullDate = {
year: 2024,
month: 1,
day: 5,
hour: 1,
minute: 1,
second: 1,
millisecond: 1,
timezone: 'UTC',
};
let result = toNewTimezone(exampleDate, timezones['Australia/Brisbane']);
// output:
result = {
year: 2024,
month: 1,
day: 5,
hour: 11,
minute: 1,
second: 1,
millisecond: 1,
timezone: timezones['Australia/Brisbane'],
};
Converts a FullDate instance into a new instance with the original's date and time represented in the new timezone.