asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Support Firebird 4 TIME WITH TIME ZONE and TIMESTAMP WITH TIME ZONE data types #89

Closed asfernandes closed 3 years ago

asfernandes commented 3 years ago

This support is done with these types:

/** TIME WITH TIME ZONE and TIMESTAMP WITH TIME ZONE to be sent as parameter */
export interface ZonedDate {
    date: Date;
    timeZone: string;
}

/** TIME WITH TIME ZONE and TIMESTAMP WITH TIME ZONE returned by Firebird */
export interface ZonedDateEx extends ZonedDate {
    offset: number;
}