Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function localDateTimeToEpochSecond
import { localDateTimeToEpochSecond } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/temporal-util.ts";

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.