---
title: "CFAbsoluteTimeGetDayOfYear(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfabsolutetimegetdayofyear(_:_:)"
---

# CFAbsoluteTimeGetDayOfYear(_:_:)

Returns an integer representing the day of the year indicated by the specified absolute time.

## Declaration

```swift
func CFAbsoluteTimeGetDayOfYear(_ at: CFAbsoluteTime, _ tz: CFTimeZone!) -> Int32
```

## Parameters

- `at`: The absolute time to convert.
- `tz`: The time zone to use for time correction. Pass NULL for GMT.

## Return Value

Return Value An integer (1-366) representing the day of the year specified by at.

## See Also

### Core Foundation Time Utilities Miscellaneous Functions

- [CFAbsoluteTimeAddGregorianUnits(_:_:_:)](corefoundation/cfabsolutetimeaddgregorianunits(_:_:_:).md)
- [CFAbsoluteTimeGetCurrent()](corefoundation/cfabsolutetimegetcurrent().md)
- [CFAbsoluteTimeGetDayOfWeek(_:_:)](corefoundation/cfabsolutetimegetdayofweek(_:_:).md)
- [CFAbsoluteTimeGetDifferenceAsGregorianUnits(_:_:_:_:)](corefoundation/cfabsolutetimegetdifferenceasgregorianunits(_:_:_:_:).md)
- [CFAbsoluteTimeGetGregorianDate(_:_:)](corefoundation/cfabsolutetimegetgregoriandate(_:_:).md)
- [CFAbsoluteTimeGetWeekOfYear(_:_:)](corefoundation/cfabsolutetimegetweekofyear(_:_:).md)
- [CFGregorianDateGetAbsoluteTime(_:_:)](corefoundation/cfgregoriandategetabsolutetime(_:_:).md)
- [CFGregorianDateIsValid(_:_:)](corefoundation/cfgregoriandateisvalid(_:_:).md)
