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 <nn/fnd.h> 14static <a href="../../../nn/fnd/DateTime/Overview.html">DateTime</a> FromParameters( 15 s32 year, 16 s32 month, 17 s32 day, 18 s32 hour = 0, 19 s32 minute = 0, 20 s32 second = 0, 21 s32 millisecond = 0 22); 23</pre> 24 </div> 25<h2>Arguments</h2> 26 <div class="section"> 27 <table class="arguments"> 28 <thead> 29 <tr> 30 <td width="15" /> 31<th>Name</th> 32<td>Description</td> 33 </tr> 34 </thead> 35 <tr> 36<td>in</td> 37<th>year</th> 38<td>Specifies the year.[ 1900 ... 2189]</td> 39 </tr> 40 <tr> 41<td>in</td> 42<th>month</th> 43<td>Specifies the month.[ 1 ... 12 ]</td> 44 </tr> 45 <tr> 46<td>in</td> 47<th>day</th> 48<td>Specifies the date.[ 1 ... 31 ]</td> 49 </tr> 50 <tr> 51<td>in</td> 52<th>hour</th> 53<td>Specifies the hour.[ 0 ... 23 ]</td> 54 </tr> 55 <tr> 56<td>in</td> 57<th>minute</th> 58<td>Specifies the minutes.[ 0 ... 59 ]</td> 59 </tr> 60 <tr> 61<td>in</td> 62<th>second</th> 63<td>Specifies the seconds.[ 0 ... 59 ]</td> 64 </tr> 65 <tr> 66<td>in</td> 67<th>millisecond</th> 68<td>Specifies the milliseconds.[ 0 ... 999 ]</td> 69 </tr> </table> 70 </div> 71<h2>Return Values</h2> 72<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> 73<h2>Description</h2> 74 <div class="section"> 75<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> 76<h2>Revision History</h2> 77 <div class="section"> 78 <dl class="history"> 79 <dt>2010/02/18</dt> 80<dd>Initial version.<br /> 81 </dd> 82 </dl> 83 </div> 84 <hr><p>CONFIDENTIAL</p></body> 85</html> 86