Resource Interchange File Format: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted section blanking Visual edit Mobile edit Mobile web edit
Reverting edit(s) by 37.39.195.247 (talk) to rev. 1199216477 by Patient Zero: Vandalism (RW 16.1)
Line 104:
|
|}
 
=== Converting DTIM time to normal time ===
The field consists of two values (v[0] and v[1]) separated with a space (0x20). Sample code:
<syntaxhighlight lang="c">
// time in seconds - "concatenate" date & time elements with a decimal point delimiter
TimeInSeconds = (v[0] * (2^32) + v[1]) * 10^(-7);
 
// shift basis from Jan 1, 1601 to Unix epoch Jan 1, 1970 (369 years & leap days)
UnixTimeStamp = TimeInSeconds - 134774 * 24 * 3600;
</syntaxhighlight>
 
== Some common RIFF file types ==