AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Skype Timestamp format
Thema durchsuchen
Ansicht
Themen-Optionen

Skype Timestamp format

Ein Thema von semo · begonnen am 22. Apr 2009 · letzter Beitrag vom 27. Apr 2009
 
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#2

Re: Skype Timestamp format

  Alt 22. Apr 2009, 20:11
Da steht doch:
Zitat:
Time stamp
The timestamps in records are stored in the standard UNlX format of seconds since 1/1/1970
00:00:00. However the data isn't represented as the standard 4 byte unsigned integer as is
usually the case, instead using 5 bytes to represent the timestamp with the format below
(where 'd' indicates a bit of data):

0000dddd 1ddddddd 1ddddddd 1ddddddd 1ddddddd

Stripping the leading 0's from this and removing the '1' at the most significant bit or each byte
yields 32 bits of information. If these are concatenated into 4 bytes, the number can be
handled using standard time functions. It is unknown why this format has been chosen.
Du musst also die Bits entsprechend zusammenfrickeln und darauf auchten, dass es keine Delphi-Zeit ist, sondern Unix-Timestamp.

Evtl. sind die Bytes auch umgedrecht - weil das hinterste rote Byte vorne ein 0-Nibble hat isses wahrscheinlich das erste Bytes des Zeitstempels

Warum die Entwickler davon abweichen kann viele Gründe haben. Einer ist vielleicht, dass es andere nicht so einfach haben, die Daten auszulesen

Probiers mal so in etwa: (Daten aus deiner Datei genommen)

Wert: Cardinal = 0;
Wert := Wert or BD;
Wert := Wert or A8 shl 7;
Wert := Wert or 88 shl 14;
Wert := Wert or CF shl 21;
Wert := Wert or 04 shl 28;
Zeit : TDatetime = UnixToDatetime(Wert);
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:56 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz