<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>P4Connection.ConvertDate Method (Int32)</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner"> <div id="bannerrow1">
<table class="bannerparthead" cellspacing="0" id="Table1">
<tr id="hdr">
<td class="runninghead">Perforce API for the .Net CLR</td>
<td class="product"><img alt="P4.Net" src="p4net.GIF" /></td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">P4Connection.ConvertDateMethod(Int32)</h1>
</div>
</div>
<div id="nstext">
<p> Converts Perforce date (integer) to .Net DateTime. </p>
<div class="syntax">
<span class="lang">[VisualBasic]</span>
<br />OverloadsPublicFunctionConvertDate( _<br />ByVal <i>p4Date</i>As<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt32ClassTopic.htm">Integer</a>_<br />)As<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDateTimeClassTopic.htm">Date</a></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDateTimeClassTopic.htm">DateTime</a>ConvertDate(<br /><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt32ClassTopic.htm">int</a><i>p4Date</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>p4Date</i>
</dt>
<dd>
<span class="missing">Missing <param> documentation for p4Date</span>
</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>DateTime in .Net format.</p>
<h4 class="dtH4">Remarks</h4>
<p>The Perforce API returns most dates as an integer representing the number of seconds since 1/1/1970. It is in UTC. The command line client generally returns dates as strings in the Perforce server's time zone. The ConvertDate methods use the server's time zone for the offset, not necessarily the local time zone.</p>
<h4 class="dtH4">See Also</h4>
<p>
<a href="P4API.P4Connection.html">P4Connection Class</a> | <a href="P4API.html">P4API Namespace</a> | <a href="P4API.P4Connection.ConvertDate_overloads.html">P4Connection.ConvertDate Overload List</a></p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
<param name="Keyword" value="ConvertDate method">
</param>
<param name="Keyword" value="ConvertDate method, P4Connection class">
</param>
<param name="Keyword" value="P4Connection.ConvertDate method">
</param>
</object>
<hr />
<div id="footer">
<p>
<a href="Copyright.html">Copyright 2006 Shawn Hladky</a>
</p>
<p>
</p>
</div>
</div>
</body>
</html>
# |
Change |
User |
Description |
Committed |
|
#1
|
7291 |
Andrew McDonald |
initial submittal |
|
|
//guest/shawn_hladky/P4.Net/release/0.9/doc/html/P4API.P4Connection.ConvertDate_overload_1.html |
#1
|
5831 |
Shawn Hladky |
P4.Net: Branch release 0.9 and delete a few files missed last time |
|
|
//guest/shawn_hladky/P4.Net/main/doc/html/P4API.P4Connection.ConvertDate_overload_1.html |
#1
|
5830 |
Shawn Hladky |
P4.Net: reorg to support release branches |
|
|
//guest/shawn_hladky/P4.Net/doc/html/P4API.P4Connection.ConvertDate_overload_1.html |
#1
|
5812 |
Shawn Hladky |
P4.Net: More documentation. |
|
|