Converts .Net DateTime to Perforce date (integer).

Namespace:  P4API
Assembly:  p4api (in p4api)
Version: 1.0.0.0 (1.0.0)

Syntax

C#
public int ConvertDate(
	DateTime date
)

Parameters

date
Type: System..::.DateTime

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