Clock
Show the current time in a selected time zone.
Description
Format an instant as local clock time in an IANA time zone.
Clock: Format an instant as local clock time in an IANA time zone.
When to use Clock
Use this formatter to display a specific instant as local civil time in an explicit IANA time zone and chosen clock format.
- Instant
- Required string input.
- Time zone
- Required string input.
- Clock format
- Required string input.
How Clock works
Format an instant as local clock time in an IANA time zone. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1
- Time
- The resulting time returned as a string.
Limitations and assumptions
- Time-zone offsets and daylight-saving transitions are historical rules that can change. Ambiguous local times, nonexistent wall times, locale formatting, and stale time-zone data require care.
- Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.
Alternative or Complementary approaches
Store and exchange the original instant with an offset or UTC representation, and retain the IANA zone when future local display matters. Use a time-zone converter when comparing multiple locations.
References
-
Time zone — Wikipedia contributors
Similar or alternative tools
- Time Zone Converter
Convert a dated local time from an IANA zone, common abbreviation, city, or UTC offset to every runtime-supported IANA time zone.
- World Time Zone Offset
Local 24-hour clock hour from UTC hour and a signed, possibly fractional, offset in hours; does not determine DST.
- Year Calendar
Generate a Monday-first calendar for all 12 months and mark the ISO week containing an optional date. Dates are interpreted in UTC to avoid local time-zone shifts.