Dates and Time
The time domain connects calendar dates and daily clock readings with intervals, dated instants, and elapsed-time measurements. Start with the overview to choose a type for your task, then follow the topics for practical examples.
- Dates and Time Overview
- Working with Dates
- Working with Times
- Working with UTC Timestamps
- Choosing an Instant Type
- Constructing and Checking an Instant
- Parsing and Formatting ISO Timestamp Text
- Storing Fields and Portable Bytes
- Timestamp and DateTime Conversions and Display Zones
- Converting Epoch Counts Without Losing Meaning
- Shifting an Instant by a Fixed Interval
- Finding the Distance Between Instants
- Continuing with Calendar and Clock Tasks
- Working with DateTime Values
- Keeping an Instant and Its Display Together
- Resolving Calendar Fields
- Reading Local and UTC Fields
- Comparing Instants and Comparing Complete Values
- Changing the Display and Resolving Clock Transitions
- Reading and Writing ISO Text
- Choosing an Epoch and an External Number Format
- Applying Elapsed and Calendar Changes
- Keeping a Recurring Local Time
- Customizing ISO Date and Time Output
- Working with Whole-Second Durations
- Writing Time Values with Literals
- Working with Typed Time Amounts
- Working with Precise Time Intervals
- Customizing Time Interval Output
- Understanding Calendar Changes
- Working with Calendar and Time Parts
- Calendar Positions versus Time Quantities
- Available Parts and Their Numbering
- Constructing and Checking a Part
- Converting Calendar Labels to Zero-Based Amounts
- Finding Lengths and Valid Days
- Navigating Across Calendar Boundaries
- Finding a Weekday Occurrence
- Converting Ordinal Dates
- DateParts, TimeParts, and DateTimeParts
- Measuring Elapsed Time
- Working with Monotonic Time Points
- Keeping a Wall-Clock Time with Its Zone
- Working with Time Zones