Perforce API for the .Net CLR P4.Net

P4Connection.ConvertDate Method (Int32)

Converts Perforce date (integer) to .Net DateTime.

[Visual Basic]
Overloads Public Function ConvertDate( _
   ByVal p4Date As Integer _
) As Date
[C#]
public DateTime ConvertDate(
   int p4Date
);

Parameters

p4Date
Missing <param> documentation for p4Date

Return Value

DateTime in .Net format.

Remarks

The Perforce API returns most dates as an integer representing the number of seconds since 1/1/1970 in UTC. The command line client generally returns dates as strings in the Perforce server's time zone. The ConvertDate methods use the client's time zone for the offset.

See Also

P4Connection Class | P4API Namespace | P4Connection.ConvertDate Overload List