Type module
Sources
Items from Time can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am5.time.myVariable * am5.time.myFunction() * -------------------------------------------------------- */ import * as am5 from "@amcharts/amcharts5"; /** * -------------------------------------------------------- * Import via: Time.ts * Access items like: $time.myVariable * $time.myFunction() * -------------------------------------------------------- */ import * as $time from "@amcharts/amcharts5/Time";
/** * -------------------------------------------------------- * Include via "index.js" * E.g.: "https://cdn.amcharts.com/lib/5/index.js" * Access items like: am5.time.myVariable * am5.time.myFunction() * -------------------------------------------------------- */
Variables
Time does not have any variables.
Functions
add( array: ) |
Returns Adds |
---|---|
checkChange( timeOne: ) |
Returns Checks if the |
copy( array: ) |
Returns Returns a copy of the |
getDateIntervalDuration( interval: ) |
Returns |
getDuration( unit: ) |
Returns Returns number of milliseconds in the Available units: "millisecond", "second", "minute", "hour", "day", "week", "month", and "year". |
getTime() |
Returns Returns current timestamp. |
now() |
Returns Returns current |
round( value: ) |
Returns "Rounds" the date to specific time unit. |
sleep( ms: ) |
Returns Returns a |