getWeekOfYear
Signature
Section titled “Signature”getWeekOfYear(): number | nullGet the ISO week number of the current date.
- Uses Temporal.Now.plainDateTimeISO() to get current date in system timezone.
- Uses Temporal.PlainDate.weekOfYear for ISO week number.
- Returns null when system timezone is unavailable.
Returns
Section titled “Returns”The ISO week number (1-53), or null on invalid
Examples
Section titled “Examples”import { getWeekOfYear } from "@northguild/gmt/plain/get";
getWeekOfYear() // 15Source
Section titled “Source”Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.