public string ToString(string format, IFormatProvider formatProvider) { ContractsCommon.ResultIsNonNull <string>(); if (format == null) { format = _defaultFormat; } if (format.StartsWith("T", StringComparison.InvariantCultureIgnoreCase)) { return(DateTime.ToString(format.Substring(1), formatProvider)); } return(SecondsSinceEpoch.ToString(format, formatProvider)); }
public override int GetHashCode() { return(SecondsSinceEpoch.GetHashCode()); }
public bool Equals(Timestamp other) { return(SecondsSinceEpoch.Equals(other.SecondsSinceEpoch)); }
public int CompareTo(Timestamp other) { return(SecondsSinceEpoch.CompareTo(other.SecondsSinceEpoch)); }