1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>FromParameters</title>
8  </head>
9  <body>
10<h1><CODE>nn::fnd::DateTime::FromParameters</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/fnd.h&gt;
14
15static <a href="../../../nn/fnd/DateTime/Overview.html">DateTime</a> FromParameters(
16     s32 year,
17     s32 month,
18     s32 day,
19     s32 hour = 0,
20     s32 minute = 0,
21     s32 second = 0,
22     s32 millisecond = 0
23);
24</pre>
25    </div>
26<h2>Arguments</h2>
27    <div class="section">
28      <table class="arguments">
29        <thead>
30          <tr>
31            <td width="15" />
32<th>Name</th>
33<td>Description</td>
34          </tr>
35        </thead>
36        <tr>
37<td>in</td>
38<th>year</th>
39<td>Specifies the year.[ 1900 ... 2189]</td>
40        </tr>
41        <tr>
42<td>in</td>
43<th>month</th>
44<td>Specifies the month.[ 1 ... 12 ]</td>
45        </tr>
46        <tr>
47<td>in</td>
48<th>day</th>
49<td>Specifies the date.[ 1 ... 31 ]</td>
50        </tr>
51        <tr>
52<td>in</td>
53<th>hour</th>
54<td>Specifies the hour.[ 0 ... 23 ]</td>
55        </tr>
56        <tr>
57<td>in</td>
58<th>minute</th>
59<td>Specifies the minutes.[ 0 ... 59 ]</td>
60        </tr>
61        <tr>
62<td>in</td>
63<th>second</th>
64<td>Specifies the seconds.[ 0 ... 59 ]</td>
65        </tr>
66        <tr>
67<td>in</td>
68<th>millisecond</th>
69<td>Specifies the milliseconds.[ 0 ... 999 ]</td>
70        </tr> </table>
71    </div>
72<h2>Return Values</h2>
73<div class="section">Returns a <a href="../../../nn/fnd/DateTime/Overview.html"><CODE>DateTime</CODE></a> object set to the specified date and time. </div>
74<h2>Description</h2>
75    <div class="section">
76<p>Generates a <a href="../../../nn/fnd/DateTime/Overview.html"><CODE>DateTime</CODE></a> object from a year, month, day, hour, minute, and second value.</p><p>Specify a valid calendar date/time. The results are indeterminate if an invalid date is specified. You can use <a href="../../../nn/fnd/DateTime/IsValidParameters.html"><CODE>IsValidParameters</CODE></a> to check whether the specified date/time is valid.</p><!-- write here --></div>
77<h2>Revision History</h2>
78    <div class="section">
79      <dl class="history">
80        <dt>2010/02/18</dt>
81<dd>Initial version.<br />
82        </dd>
83      </dl>
84    </div>
85  <hr><p>CONFIDENTIAL</p></body>
86</html>