ZealOS/docs/Doc/TimeDate.DD

33 lines
1.7 KiB
Text
Executable file

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V0.05">
<style type="text/css">
body {background-color:#000000;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<a name="l1"></a><span class=cF0>ZealOS uses a 64-bit value, </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l209"><span class=cF4>CDate</span></a><span class=cF0>, for date/time. The upper 32-bits are the days since Christ. The lower 32-bits store time of
<a name="l2"></a>day divided by 4 billion which works out to 49710ths of a second. You can subtract two </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l209"><span class=cF4>CDate</span></a><span class=cF0>'s to get a time span.
<a name="l3"></a>
<a name="l4"></a>Use </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l706"><span class=cF4>CDATE_FREQ</span></a><span class=cF0> to convert.
</span></pre></body>
</html>