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 17<h2>C Specification</h2> 18 19<dl> 20 <dd><pre><code>#include <revolution/os.h> 21 22typedef struct OSCalendarTime 23{ 24 int sec; // seconds after the minute [0, 61] 25 int min; // minutes after the hour [0, 59] 26 int hour; // hours since midnight [0, 23] 27 int mday; // day of the month [1, 31] 28 int mon; // month since January [0, 11] 29 int year; // years in AD [1, ...] 30 int wday; // days since Sunday [0, 6] 31 int yday; // days since January 1 [0, 365] 32 33 int msec; // milliseconds after the second [0,999] 34 int usec; // microseconds after the millisecond [0,999] 35} OSCalendarTime;</code></pre> 36 </dd> 37 <dd><pre><CODE>OSTime OSCalendarTimeToTicks(OSCalendarTime* td);</CODE></pre> 38 </dd> 39</dl> 40 41<h2>Arguments</h2> 42<TABLE border="1" cellpadding="3" cellspacing="0.1"> 43 <tr> 44<TD width="120" bgcolor="#ffffe8"><code><strong><em><STRONG><EM><CODE>td</CODE></EM></STRONG></em></strong></code></TD> 45<TD width="520">Pointer to the <code>OSCalendarTime</code> function to get the time.</TD> 46 </tr> 47</TABLE> 48<h2>Return Values</h2> 49 50<P>64-bit <code>OSTime</code> type integer value.</P> 51<H2>Description</H2> 52<P>Converts time from units of calendar time to ticks (at <code>OS_TIMER_CLOCK</code> Hz).</P> 53 54 55<h2>See Also</h2> 56 57<p><a href="../toc.html#Time" target="contents">Time Functions</a>, <code><a href="OSTicksToCycles.html">OSTicksToCycles</a></code>, <code><a href="OSTicksToSeconds.html">OSTicksToSeconds</a></code>, <code><a href="OSTicksToMilliseconds.html">OSTicksToMilliseconds</a></code>, <code><a href="OSSecondsToTicks.html">OSSecondsToTicks</a></code>, <code><a href="OSMillisecondsToTicks.html">OSMillisecondsToTicks</a></code>, <code><a href="OSMicrosecondsToTicks.html">OSMicrosecondsToTicks</a></code>, <code><a href="OSNanosecondsToTicks.html">OSNanosecondsToTicks</a></code>, <code><br> <a href="OSTicksToCalendarTime.html">OSTicksToCalendarTime</a></code></p> 58<H2>Revision History</H2> 59<P>2006/03/01 Initial version.</P> 60<hr> 61<P>CONFIDENTIAL</p> 62</BODY> 63</HTML>