.
Summary
Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors.
C# Signature:
[DllImport("kernel32.dll")]
static extern void GetSystemTime(out SystemTime t);
User-Defined Types:
[StructLayout(LayoutKind .Sequential)]
struct SystemTime
{
public ushort Year;
public ushort Month;
public ushort DayOfWeek;
public ushort Day;
public ushort Hour;
public ushort Minute;
public ushort Second;
public ushort Milliseconds;
}
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
SystemTime t = new SystemTime();
GetSystemTime(out t); // If SystemTime is of type struct we have to use out
Console.WriteLine(t.Year);
Alternative Managed API:
Do you know one? Please contribute it!
Documentation
Represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.
9/30/2021 1:01:31 PM - -45.137.113.229
TODO - a short description
3/16/2007 8:17:31 AM - -63.69.129.2
Represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.
9/30/2021 1:01:31 PM - -45.137.113.229
Represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.
9/30/2021 1:01:31 PM - -45.137.113.229
Represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.
9/30/2021 1:01:31 PM - -45.137.113.229