package
Version:
v1.21.0
Opens a new window with list of versions in this module.
Published: Feb 17, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
timeHelpers
timeHelpers provides timezone inference from locale region codes.
Functions
| Function |
Description |
InferTimezoneFromLocale(locale string) (string, error) |
Maps a locale string (e.g. "en_GB") to an IANA timezone name |
Example
import "github.com/mt1976/frantic-core/timeHelpers"
func main() {
tz, err := timeHelpers.InferTimezoneFromLocale("en_GB")
if err != nil {
log.Fatal(err)
}
fmt.Println("Timezone:", tz) // "Europe/London"
}
Documentation
¶
Package timehelpers contains helpers for time-of-day and duration handling.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.