示例#1
0
        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);
        }
示例#2
0
 public static long GetRandomId(DateTime time, DateTimeKind kind = DateTimeKind.Local)
 {
     return(IdBase.GetId(TimeToUtc(time, kind), SectionIdType.Random));
 }
示例#3
0
 public static long NewId()
 {
     return(IdBase.NewId());
 }