bindings for Date.prototype.getFullYear()

This commit is contained in:
toversus
2018-07-04 19:52:12 +09:00
parent 3007e813ea
commit e95994fd19
2 changed files with 42 additions and 0 deletions

View File

@ -670,6 +670,12 @@ extern "C" {
#[wasm_bindgen(method, js_name = getDay)]
pub fn get_day(this: &Date) -> Number;
/// The getFullYear() method returns the year of the specified date according to local time.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear
#[wasm_bindgen(method, js_name = getFullYear)]
pub fn get_full_year(this: &Date) -> Number;
/// Creates a JavaScript Date instance that represents
/// a single moment in time. Date objects are based on a time value that is
/// the number of milliseconds since 1 January 1970 UTC.