Skip to main content
Latest
function internal.temporalUtil.localDateTimeToEpochSecond
import { internal } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/index.ts";
const { localDateTimeToEpochSecond } = internal.temporalUtil;

Converts given local date time into a single integer representing this same time in epoch seconds UTC.

Parameters

year: NumberOrInteger | string

the year of the local date-time to convert.

month: NumberOrInteger | string

the month of the local date-time to convert.

day: NumberOrInteger | string

the day of the local date-time to convert.

hour: NumberOrInteger | string

the hour of the local date-time to convert.

minute: NumberOrInteger | string

the minute of the local date-time to convert.

second: NumberOrInteger | string

the second of the local date-time to convert.

nanosecond: NumberOrInteger | string

the nanosecond of the local date-time to convert.

Returns

epoch second in UTC representing the given local date time.