getMonth
Signature
Section titled “Signature”getMonth(): stringimport { getMonth } from "@northguild/gmt/plain/get";Return the current month using the system timeZone.
- Uses Temporal.Now.zonedDateTimeISO to get current month in system timezone.
- Returns zero-padded string (e.g., “02”).
- Returns “” when system timezone is unavailable.
Returns
Section titled “Returns”current month string (zero-padded) or “” on invalid
Examples
Section titled “Examples”getMonth() // "02"getMonth() // "" (when system timeZone unavailable)