Beispiel #1
0
        // Token: 0x060001FC RID: 508 RVA: 0x000085E0 File Offset: 0x000067E0
        public static object parseBinaryDate(int headerPosition)
        {
            byte[] array = Plist.objectTable.GetRange(checked (headerPosition + 1), 8).ToArray();
            Array.Reverse(array);
            double   timestamp = BitConverter.ToDouble(array, 0);
            DateTime dateTime  = PlistDateConverter.ConvertFromAppleTimeStamp(timestamp);

            return(dateTime);
        }
Beispiel #2
0
        // Token: 0x060001EE RID: 494 RVA: 0x00007D58 File Offset: 0x00005F58
        public static byte[] writeBinaryDate(DateTime obj)
        {
            List <byte> list = new List <byte>(Plist.RegulateNullBytes(BitConverter.GetBytes(PlistDateConverter.ConvertToAppleTimeStamp(obj)), 8));

            list.Reverse();
            list.Insert(0, 51);
            Plist.objectTable.InsertRange(0, list);
            return(list.ToArray());
        }