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

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

Syntax

C#
public DateTime ConvertDate(
	string p4Date
)

Parameters

p4Date
Type: System..::.String

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