mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 17:21:35 +00:00
Add date to utc string
This commit is contained in:
@ -376,6 +376,13 @@ extern {
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
pub type Date;
|
||||
|
||||
/// The toUTCString() method converts a date to a string,
|
||||
/// using the UTC time zone.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
|
||||
#[wasm_bindgen(method, js_name = toUTCString)]
|
||||
pub fn to_utc_string(this: &Date) -> JsString;
|
||||
|
||||
/// The valueOf() method returns the primitive value of
|
||||
/// a Date object.
|
||||
|
Reference in New Issue
Block a user