<!--
{
  "availability" : [
    "iOS: 2.0.0 - 8.0.0",
    "iPadOS: 2.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.4.0 - 10.10.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFAbsoluteTimeGetWeekOfYear(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFAbsoluteTimeGetWeekOfYear"
  },
  "title" : "CFAbsoluteTimeGetWeekOfYear(_:_:)"
}
-->

# CFAbsoluteTimeGetWeekOfYear(_:_:)

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

```
func CFAbsoluteTimeGetWeekOfYear(_ 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

An integer (`1-53`) representing the week of the year specified by `at`. The numbering follows the ISO 8601 definition of week.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)