Resource Interchange File Format: Difference between revisions

Content deleted Content added
Importing Wikidata short description: "Tagged file structure for multimedia resource files" (Shortdesc helper)
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 107:
=== Converting DTIM time to normal time ===
The field consists of two values (v[0] and v[1]) separated with a space (0x20). Sample code:
<sourcesyntaxhighlight lang="c">
// time in seconds - "concatenate" date & time elements with a decimal point delimiter
TimeInSeconds = (v[0] * (2^32) + v[1]) * 10^(-7);
Line 113:
// shift basis from Jan 1, 1601 to Unix epoch Jan 1, 1970 (369 years & leap days)
UnixTimeStamp = TimeInSeconds - 134774 * 24 * 3600;
</syntaxhighlight>
</source>
 
== Some common RIFF file types ==