|
libintrovirt v0.57.4
IntroVirt introspection library
|
Helper class for the Windows time format. More...
#include <WindowsTime.hh>
Public Member Functions | |
| uint64_t | windows_time () const |
| operator uint64_t () const | |
| uint64_t | unix_time () const |
| std::string | string () const |
| WindowsTime (const WindowsTime &other) | |
| Copy constructor. | |
| WindowsTime & | operator= (const WindowsTime &other) |
| Copy assignment operator. | |
| WindowsTime (WindowsTime &&other) noexcept | |
| Move constructor. | |
| WindowsTime & | operator= (WindowsTime &&other) noexcept |
| Move assignment operator. | |
| ~WindowsTime ()=default | |
Static Public Member Functions | |
| static WindowsTime | from_windows_time (uint64_t winTime) |
| static WindowsTime | from_unix_time (uint64_t unixTime) |
Helper class for the Windows time format.
Windows uses times based on nanoseconds since January 1, 1601. This class provides conversion to and from UNIX time.
Note that times will be in UTC
| introvirt::windows::WindowsTime::WindowsTime | ( | const WindowsTime & | other | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
default |
|
static |
Create a WindowsTime object from UNIX format
| unixTime | The UNIX time value |
|
static |
Create a WindowsTime object directly from Windows format
| winTime | The Windows time value |
| introvirt::windows::WindowsTime::operator uint64_t | ( | ) | const |
| WindowsTime & introvirt::windows::WindowsTime::operator= | ( | const WindowsTime & | other | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| std::string introvirt::windows::WindowsTime::string | ( | ) | const |
| uint64_t introvirt::windows::WindowsTime::unix_time | ( | ) | const |
| uint64_t introvirt::windows::WindowsTime::windows_time | ( | ) | const |