Merge pull request #4335 from colrdavidson/datetime_tz

Add Timezone Support to Odin
This commit is contained in:
Jeroen van Rijn
2024-10-22 10:18:38 +02:00
committed by GitHub
15 changed files with 1662 additions and 31 deletions
+14
View File
@@ -0,0 +1,14 @@
#+build windows
package sys_windows
foreign import "system:icu.lib"
UError :: enum i32 {
U_ZERO_ERROR = 0,
}
@(default_calling_convention="system")
foreign icu {
ucal_getWindowsTimeZoneID :: proc(id: wstring, len: i32, winid: wstring, winidCapacity: i32, status: ^UError) -> i32 ---
ucal_getDefaultTimeZone :: proc(result: wstring, cap: i32, status: ^UError) -> i32 ---
}