tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

IsoDateTime.d.ts (813B)


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