package timedesc-tzlocal-js

  1. Overview
  2. Docs
JS implementation for timedesc-tzlocal

Install

Dune Dependency

Authors

Maintainers

Sources

timedesc-3.1.0.tar.gz
sha256=9c469c849ca6242f133ff1dadab3855379f4f6bc559486589a04276223428871

doc/src/timedesc-tzlocal-js/timedesc_tzlocal.ml.html

Source file timedesc_tzlocal.ml

1
2
3
4
5
6
open Js_of_ocaml

let local () =
  let formatter = new%js Intl.dateTimeFormat_constr Js.undefined Js.undefined in
  let tz = Js.to_string (formatter##resolvedOptions ())##.timeZone in
  [ tz ]
OCaml

Innovation. Community. Security.