Contents

abbreviation(for:)

Returns the abbreviation for the receiver at a given date.

Declaration

func abbreviation(for aDate: Date) -> String?

Parameters

  • aDate:

    The date for which to get the abbreviation for the receiver.

Return Value

The abbreviation for the receiver at aDate.

Discussion

Note that the abbreviation may be different at different dates. For example, during daylight saving time the US/Eastern time zone has an abbreviation of “EDT.” At other times, its abbreviation is “EST.”

See Also

Getting Time Zone Information