Мой текущий код выглядит так:
Код: Выделить всё
public DateTime ExtractTimestampFromUUID(string uuid)
{
// split the UUID into its components
var parts = uuid.Split('-');
var xx = parts[0] + parts[1];
// the second part of the UUID contains the high bits of the timestamp (48 bits in total)
var highBitsHex = parts[0] + parts[1].Substring(0, 4);
// convert the high bits from hex to decimal
var timestampInMilliseconds = Convert.ToInt64(highBitsHex, 16);
// convert the timestamp to a DateTime object
var date = new DateTime(timestampInMilliseconds);
return date;
}
Будем очень благодарны за любую помощь.
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/791 ... ng-c-sharp
Мобильная версия