Perforce API for the .Net CLR P4.Net

P4Connection.ConvertDate Method (String)

Converts Perforce date (integer value as a string) to .Net DateTime.

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

Parameters

p4Date
Missing <param> documentation for p4Date

Return Value

Missing <returns> documentation for M:P4API.P4Connection.ConvertDate(System.String)

Remarks

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.

See Also

P4Connection Class | P4API Namespace | P4Connection.ConvertDate Overload List