Perforce API for the .Net CLR P4.Net

P4Connection.ConvertDate Method (DateTime)

Converts .Net DateTime to Perforce date (integer).

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

Parameters

date
Missing <param> documentation for date

Return Value

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

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