Package-level declarations
Types
Functions
Returns the abbreviated day-of-week name for this date. Example: LocalDate(2024, 3, 5).dayOfWeekAbbr() → "Tue"
Returns the day-of-week name for this date. Example: LocalDate(2024, 3, 5).dayOfWeekName() → "Tuesday"
Returns the number of days in the month of this date. Example: LocalDate(2024, 2, 1).daysInMonth() → 29 (2024 is a leap year)
Formats the delta between two epoch-second timestamps as a verbose string. Example: startEpoch.deltaStringTo(endEpoch) → "1 year, 3 months"
Returns the display name of a TimeZone with its current UTC offset. Example: TimeZone.of("Europe/Paris").displayName() → "Europe/Paris (UTC+01:00)"
Returns the fiscal quarter (1–4) for a LocalDate given a fiscal year start month. fiscalYearStartMonth defaults to 1 (January = calendar year). Example: LocalDate(2024, 10, 15).fiscalQuarter(fiscalYearStartMonth = 10) → 1
Returns the last day of the fiscal quarter this date belongs to.
Returns the first day of the fiscal quarter this date belongs to. Example: LocalDate(2024, 11, 20).fiscalQuarterStart(fiscalYearStartMonth = 10) → LocalDate(2024, 10, 1)
Returns the fiscal year for a LocalDate given a fiscal year start month. Example: LocalDate(2024, 10, 15).fiscalYear(fiscalYearStartMonth = 10) → 2025
Converts an Instant to a formatted datetime string in the given TimeZone. Example: someInstant.formatInZone(TimeZone.of("Europe/Paris")) → "2024-03-05 14:30:00 UTC+01:00"
Returns true if the year of this date is a leap year.
Formats a UTC offset in total minutes as "UTC±HH:MM". Example: 330.minutesToUtcOffset() → "UTC+05:30" Example: (-300).minutesToUtcOffset() → "UTC-05:00"
Formats a UTC offset in total seconds as "UTC±HH:MM:SS" or "UTC±HH:MM" if seconds are zero. Example: 19800.secondsToUtcOffset() → "UTC+05:30"
Returns a short label for a TimeZone offset. Example: TimeZone.of("Asia/Kolkata").shortLabel() → "UTC+5:30"
Formats a LocalDate as "DD/MM/YYYY". Example: LocalDate(2024, 3, 5).toDayMonthYear() → "05/03/2024"
Returns a formatted fiscal quarter label like "Q1 FY2025". Example: LocalDate(2024, 10, 15).toFiscalQuarterLabel(fiscalYearStartMonth = 10) → "Q1 FY2025"
Formats a LocalDate as "YYYY-MM-DD" (ISO 8601). Example: LocalDate(2024, 3, 5).toIsoString() → "2024-03-05"
Formats a LocalDate as "Month D, YYYY". Example: LocalDate(2024, 3, 5).toLongDate() → "March 5, 2024"
Formats a TimeDelta as a verbose string showing all non-zero components. Example: delta.toLongString() → "65 days, 3 hours"
Formats a LocalDate as "MM/DD/YYYY" (US style). Example: LocalDate(2024, 3, 5).toMonthDayYear() → "03/05/2024"
Formats a LocalDate as "Mon DD, YYYY" (abbreviated month). Example: LocalDate(2024, 3, 5).toShortDate() → "Mar 05, 2024"
Returns a concise relative time string (e.g. for feed timestamps). Uses abbreviated units: "s", "m", "h", "d", "w", "mo", "y". Example: someInstant.toShortRelativeTime() → "3h"
Formats a TimeDelta showing only the two most significant components. Example: delta.toShortString() → "2 months, 5 days"
Returns the UTC offset string for a named TimeZone at a given Instant. Example: TimeZone.of("America/New_York").utcOffsetAt() → "UTC-05:00"
Returns the ISO week number (1–53) for this date.