{
"import": [
"mizchi/js",
"mizchi/js_builtin/date"
]
}fn main {
// Create a new Date
let now = @date.Date::new()
// Get timestamp
let timestamp = @date.Date::now()
// Create from timestamp
let date = @date.Date::from_time(1234567890000.0)
// Get components
let year = date.getFullYear()
let month = date.getMonth()
let day = date.getDate()
// Convert to string
let str = date.toISOString()
}#external
pub type Datefn Date::utc(year : Int, month : Int, day : Int, hours : Int, minutes : Int, seconds : Int, milliseconds : Int) -> IntInstall
Download zipjavascript built-in object bindings (Object, Array, JSON, RegExp, Symbol, Proxy, ...)
Dependencies