@odata2ts/converter-v2-to-v4
Version:
A set of odata2ts compatible converters to convert certain OData V2 types to their V4 analog
10 lines (9 loc) • 456 B
TypeScript
import { ValueConverter } from "@odata2ts/converter-api";
/**
* Converts Edm.DateTime, which is a very special construct, to Edm.DateTimeOffset, which is the typical
* ISO 8601 date time format: "2022-12-31T23:59:59.000Z".
*
* Edm.DateTime is based on a timestamp ("/Date(1672531199000)/") and also supports offsets in minutes
* ("/Date(1672531199000+120)/".
*/
export declare const dateTimeToDateTimeOffsetConverter: ValueConverter<string, string>;