binding for Date.prototype.setTime()

This commit is contained in:
toversus
2018-07-10 21:46:44 +09:00
parent c185897eff
commit 91d6ae5f04
2 changed files with 45 additions and 0 deletions

View File

@ -1066,6 +1066,13 @@ extern "C" {
#[wasm_bindgen(method, js_name = setSeconds)]
pub fn set_seconds(this: &Date, seconds: u32) -> f64;
/// The setTime() method sets the Date object to the time represented by a number of milliseconds
/// since January 1, 1970, 00:00:00 UTC.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime
#[wasm_bindgen(method, js_name = setTime)]
pub fn set_time(this: &Date, time: f64) -> f64;
/// The toDateString() method returns the date portion of a Date object
/// in human readable form in American English.
///