Type module
Sources
Items from Time can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am4core.time.myVariable * am4core.time.myFunction() * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4"; /** * -------------------------------------------------------- * Import via: Time.ts * Access items like: $time.myVariable * $time.myFunction() * -------------------------------------------------------- */ import * as $time from "@amcharts/amcharts4/Time";
/** * -------------------------------------------------------- * Include via "core.js" * Access items like: am4core.time.myVariable * am4core.time.myFunction() * -------------------------------------------------------- */
Variables
Time does not have any variables.
Functions
getTime() |
Returns Returns current timestamp. |
---|---|
getTimezoneMinutes( timezone: ) |
Returns Returns minute fraction of the set timezone. @since 4.10.12 |
now() |
Returns Returns current |
setTimezone( date: ) |
Returns Returns a new @since 4.10.1 |