1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>OSCalendarTimeToTicks</title>
10</head>
11
12<body>
13
14<h1>OSCalendarTimeToTicks</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/os.h&gt;
19
20typedef struct OSCalendarTime
21{
22    int sec;    // seconds after the minute [0, 61]
23    int min;    // minutes after the hour [0, 59]
24    int hour;   // hours since midnight [0, 23]
25    int mday;   // day of the month [1, 31]
26    int mon;    // month since January [0, 11]
27    int year;   // year [1, ...]
28    int wday;   // days since Sunday [0, 6]
29    int yday;   // days since January 1 [0, 365]
30
31    int msec;   // milliseconds after the second [0,999]
32    int usec;   // microseconds after the millisecond [0,999]
33} OSCalendarTime;
34
35OSTime OSCalendarTimeToTicks(OSCalendarTime* td);
36</pre></dd></dl>
37
38<h2>Arguments</h2>
39<TABLE class="arguments" border="1" >
40  <tr>
41<TH>td</TH>
42<TD>Pointer to the <CODE>OSCalendarTime</CODE> function to get the time.</TD>
43  </tr>
44</TABLE>
45
46<h2>Return Values</h2>
47<P>An <CODE>OSTime</CODE> (64-bit) type integer value.</P>
48
49<H2>Description</H2>
50<P>Converts time representation from calendar time to ticks (in <CODE>OS_TIMER_CLOCK</CODE> Hz).</P>
51
52<h2>See Also</h2>
53<P class="reference">
54<a href="../toc.html#Time" target="contents">Time Functions</a>,
55<a href="OSTicksToCycles.html">OSTicksToCycles</a>,
56<a href="OSTicksToSeconds.html">OSTicksToSeconds</a>,
57<a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a>,
58<a href="OSSecondsToTicks.html">OSSecondsToTicks</a>,
59<a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a>,
60<a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a>,
61<a href="OSNanosecondsToTicks.html">OSNanosecondsToTicks</a>,
62<a href="OSTicksToCalendarTime.html">OSTicksToCalendarTime</a>
63</p>
64
65<H2>Revision History</H2>
66<P>
672006/03/01 Initial version.<br>
68</P>
69
70<hr><p>CONFIDENTIAL</p></body>
71</html>