binding for Date.prototype.setMilliseconds()

This commit is contained in:
toversus
2018-07-10 20:55:45 +09:00
parent 524628e1e1
commit 11a58a1bd0
2 changed files with 43 additions and 0 deletions

View File

@ -1042,6 +1042,12 @@ extern "C" {
#[wasm_bindgen(method, js_name = setHours)]
pub fn set_hours(this: &Date, hours: u32) -> f64;
/// The setMilliseconds() method sets the milliseconds for a specified date according to local time.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds
#[wasm_bindgen(method, js_name = setMilliseconds)]
pub fn set_milliseconds(this: &Date, milliseconds: u32) -> f64;
/// The toDateString() method returns the date portion of a Date object
/// in human readable form in American English.
///