Skip to content

worldwind-ui API / worldwind-kit / formatTimeLabel

Function: formatTimeLabel() ​

formatTimeLabel(date, stepMs?): string

Defined in: kit/src/time.ts:324

A short UTC label for widgets: 2024-05-01, or 2024-05-01 12:00 UTC for sub-daily steps.

Parameters ​

date ​

Date

stepMs? ​

number

Returns ​

string

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.