date.js 305 B

1234567891011
  1. pour(built_in_functions, {
  2. get_local_unix_time: fun (
  3. 'function get_local_unix_time () -> Int',
  4. () => Date.now()
  5. ),
  6. get_local_timezone_offset: fun (
  7. 'function get_local_timezone_offset () -> Int',
  8. () => -((new Date()).getTimezoneOffset()) / 60
  9. )
  10. })