web-dom 0.0.10

Simple bindings to the DOM using wasm-module
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern "C" {
    fn date_now() -> f64;
    fn date_get_timezone_offset() -> i32;
}

pub fn now() -> f64 {
    unsafe { date_now() }
}

pub fn get_timezone_offset() -> i32 {
    unsafe { date_get_timezone_offset() }
}