package timedesc-tzlocal-js

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

timedesc-3.1.2.tar.gz
sha256=8577628c6634aaefa92d1d97b4afca2fd817bc2b2d6d979da35dfbf65a80d6bd

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 ]