Source code
Revision control
Copy as Markdown
Other Tools
// generated by diplomat-tool
import type { Calendar } from "./Calendar"
import type { Date } from "./Date"
import type { Rfc9557ParseError } from "./Rfc9557ParseError"
import type { Time } from "./Time"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* An ICU4X DateTime object capable of containing a date and time for any calendar.
*
* See the [Rust documentation for `DateTime`](https://docs.rs/icu/latest/icu/time/struct.DateTime.html) for more information.
*/
export class DateTime {
get date(): Date;
get time(): Time;
/**
* Creates a new [`DateTime`] from an IXDTF string.
*
* 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.
*/
static fromString(v: string, calendar: Calendar): DateTime;
}