DateTime.d.ts (866B)
1 // generated by diplomat-tool 2 import type { Calendar } from "./Calendar" 3 import type { Date } from "./Date" 4 import type { Rfc9557ParseError } from "./Rfc9557ParseError" 5 import type { Time } from "./Time" 6 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 7 8 9 /** 10 * An ICU4X DateTime object capable of containing a date and time for any calendar. 11 * 12 * See the [Rust documentation for `DateTime`](https://docs.rs/icu/latest/icu/time/struct.DateTime.html) for more information. 13 */ 14 15 16 export class DateTime { 17 get date(): Date; 18 get time(): Time; 19 20 21 /** 22 * Creates a new [`DateTime`] from an IXDTF string. 23 * 24 * See the [Rust documentation for `try_from_str`](https://docs.rs/icu/latest/icu/time/struct.DateTime.html#method.try_from_str) for more information. 25 */ 26 static fromString(v: string, calendar: Calendar): DateTime; 27 }