Microsoft Windows SYSTEMTIME structure: GraphViz block diagram (.dot) source

Microsoft Windows SYSTEMTIME structure, stores individual components of date and time as individual fields, up to millisecond precision.

KS implementation details

License: CC0-1.0

This page hosts a formal specification of Microsoft Windows SYSTEMTIME structure using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

GraphViz block diagram source

windows_systemtime.dot

digraph {
	rankdir=LR;
	node [shape=plaintext];
	subgraph cluster__windows_systemtime {
		label="WindowsSystemtime";
		graph[style=dotted];

		windows_systemtime__seq [label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
			<TR><TD BGCOLOR="#E0FFE0">pos</TD><TD BGCOLOR="#E0FFE0">size</TD><TD BGCOLOR="#E0FFE0">type</TD><TD BGCOLOR="#E0FFE0">id</TD></TR>
			<TR><TD PORT="year_pos">0</TD><TD PORT="year_size">2</TD><TD>u2le</TD><TD PORT="year_type">year</TD></TR>
			<TR><TD PORT="month_pos">2</TD><TD PORT="month_size">2</TD><TD>u2le</TD><TD PORT="month_type">month</TD></TR>
			<TR><TD PORT="dow_pos">4</TD><TD PORT="dow_size">2</TD><TD>u2le</TD><TD PORT="dow_type">dow</TD></TR>
			<TR><TD PORT="day_pos">6</TD><TD PORT="day_size">2</TD><TD>u2le</TD><TD PORT="day_type">day</TD></TR>
			<TR><TD PORT="hour_pos">8</TD><TD PORT="hour_size">2</TD><TD>u2le</TD><TD PORT="hour_type">hour</TD></TR>
			<TR><TD PORT="min_pos">10</TD><TD PORT="min_size">2</TD><TD>u2le</TD><TD PORT="min_type">min</TD></TR>
			<TR><TD PORT="sec_pos">12</TD><TD PORT="sec_size">2</TD><TD>u2le</TD><TD PORT="sec_type">sec</TD></TR>
			<TR><TD PORT="msec_pos">14</TD><TD PORT="msec_size">2</TD><TD>u2le</TD><TD PORT="msec_type">msec</TD></TR>
		</TABLE>>];
	}
}