// Token: 0x0600072B RID: 1835 RVA: 0x00011D8C File Offset: 0x00010D8C internal static string OffsetTypeToString(RelativeTime offsetType) { switch (offsetType) { case RelativeTime.Second: return("S"); case RelativeTime.Minute: return("M"); case RelativeTime.Hour: return("H"); case RelativeTime.Day: return("D"); case RelativeTime.Week: return("W"); case RelativeTime.Month: return("MO"); case RelativeTime.Year: return("Y"); default: throw new ArgumentOutOfRangeException("offsetType", offsetType.ToString(), "Invalid value for relative time offset type."); } }
// Token: 0x06000726 RID: 1830 RVA: 0x00011CE8 File Offset: 0x00010CE8 private static string BaseTypeToString(RelativeTime baseTime) { switch (baseTime) { case RelativeTime.Now: return("NOW"); case RelativeTime.Second: return("SECOND"); case RelativeTime.Minute: return("MINUTE"); case RelativeTime.Hour: return("HOUR"); case RelativeTime.Day: return("DAY"); case RelativeTime.Week: return("WEEK"); case RelativeTime.Month: return("MONTH"); case RelativeTime.Year: return("YEAR"); default: throw new ArgumentOutOfRangeException("baseTime", baseTime.ToString(), "Invalid value for relative base time."); } }
public string GetEventValue(string Name) { if (EventValues.ContainsKey(Name)) { return(EventValues[Name]); } else if (Name.ToLower() == "eventname") { return(EventName); } else if (Name.ToLower() == "element") { return(Element); } else if (Name.ToLower() == "timestamp") { return(TimeStamp.ToString()); // TODO: Define format } else if (Name.ToLower() == "relativetime") { return(RelativeTime.ToString()); } ; // TODO: Define format return(""); }
public override string ToString() => $"{RelativeTime.ToString(CultureInfo.InvariantCulture)} {Type} {FrameId}";
public override string ToString() => RelativeTime.ToString(CultureInfo.InvariantCulture);