Converts Perforce date (integer) to .Net DateTime.

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

Syntax

C#
public DateTime ConvertDate(
	int p4Date
)

Parameters

p4Date
Type: System..::.Int32

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