Module: Win::Time
- Extended by:
- Library
- Defined in:
- lib/win/time.rb
Overview
Includes functions related to Time in Windows In general you will want to use this module with Win::National because it contains the various LOCALE and TIME constants.
NB: Millisecond granularity may NOT be supported by a hardware platform. The caller of these functions should not rely on more than second granularity. In fact, granularity of all the GetTime… functions is about ~16msec on Windows. You’ll need to mess with QueryPerformanceFrequency() and QueryPerformanceCounter() to get real msec granularity on MS Windows; OR, just use Win::Time.now() for enhanced-precision Time values
Constant Summary collapse
- TIME_ZONE_ID_UNKNOWN =
0
- TIME_ZONE_ID_STANDARD =
1
- TIME_ZONE_ID_DAYLIGHT =
2
Constants included from Library
Method Summary
Methods included from Library
callback, define_api, define_snake_method, enforce_count, extended, function, generate_names, generate_signature, generate_snake_method_body, try_function