Class: FFI::WIN32::SYSTEMTIME
- Defined in:
- lib/puppet/util/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
241 242 243 244 |
# File 'lib/puppet/util/windows/api_types.rb', line 241 def to_local_time Time.local(self[:wYear], self[:wMonth], self[:wDay], self[:wHour], self[:wMinute], self[:wSecond], self[:wMilliseconds] * 1000) end |