Class: FFI::WIN32::SYSTEMTIME
- Defined in:
- lib/puppet/ffi/windows/api_types.rb
Overview
msdn.microsoft.com/en-us/library/windows/desktop/ms724950(v=vs.85).aspx typedef struct _SYSTEMTIME
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
SYSTEMTIME, *PSYSTEMTIME;
Instance Method Summary collapse
Instance Method Details
#to_local_time ⇒ Object
271 272 273 274 |
# File 'lib/puppet/ffi/windows/api_types.rb', line 271 def to_local_time Time.local(self[:wYear], self[:wMonth], self[:wDay], self[:wHour], self[:wMinute], self[:wSecond], self[:wMilliseconds] * 1000) end |