public static Dictionary <int, long> GetSectionId(DateTime starTime, DateTime endTime, DateTimeKind kind = DateTimeKind.Local) { Dictionary <int, long> section = new Dictionary <int, long>(); section.Add(0, IdBase.GetId(TimeToUtc(starTime, kind), SectionIdType.First)); section.Add(1, IdBase.GetId(TimeToUtc(endTime, kind), SectionIdType.Last)); return(section); }
public static long GetRandomId(DateTime time, DateTimeKind kind = DateTimeKind.Local) { return(IdBase.GetId(TimeToUtc(time, kind), SectionIdType.Random)); }
public static long NewId() { return(IdBase.NewId()); }