All Projects → digitalsleuth → time_decode

digitalsleuth / time_decode

Licence: MIT license
A timestamp and date decoder written for python 3

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to time decode

StringConvert
A simple C++11 based helper for converting string between a various charset
Stars: ✭ 16 (-33.33%)
Mutual labels:  encode, decode
Silk V3 Decoder
kn007's blog
Stars: ✭ 1,832 (+7533.33%)
Mutual labels:  encode, decode
morse
Morse Code Library in Go
Stars: ✭ 75 (+212.5%)
Mutual labels:  encode, decode
node-lei-proto
简单的Buffer编码/解析模块
Stars: ✭ 14 (-41.67%)
Mutual labels:  encode, decode
libutf8
A whatwg compliant UTF8 encoding and decoding library
Stars: ✭ 32 (+33.33%)
Mutual labels:  encode, decode
fastproto
FastProto is a binary data processing tool written in Java.
Stars: ✭ 65 (+170.83%)
Mutual labels:  encode, decode
janus-gateway-live
RTMP edge speed with janus-gateway
Stars: ✭ 38 (+58.33%)
Mutual labels:  encode, decode
alawmulaw
A-Law and mu-Law codecs in JavaScript.
Stars: ✭ 22 (-8.33%)
Mutual labels:  encode, decode
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (+37.5%)
Mutual labels:  encode, decode
He
A robust HTML entity encoder/decoder written in JavaScript.
Stars: ✭ 2,973 (+12287.5%)
Mutual labels:  encode, decode
Androidcamera
🔥🔥🔥自定义Android相机(仿抖音 TikTok),其中功能包括视频人脸识别贴纸,美颜,分段录制,视频裁剪,视频帧处理,获取视频关键帧,视频旋转,添加滤镜,添加水印,合成Gif到视频,文字转视频,图片转视频,音视频合成,音频变声处理,SoundTouch,Fmod音频处理。 Android camera(imitation Tik Tok), which includes video editor,audio editor,video face recognition stickers, segment recording,video cropping, video frame processing, get the first video frame, key frame, v…
Stars: ✭ 2,112 (+8700%)
Mutual labels:  encode, decode
FireSnapshot
A useful Firebase-Cloud-Firestore Wrapper with Codable.
Stars: ✭ 56 (+133.33%)
Mutual labels:  encode, decode
bilibili-web-socket
弹幕 web websocket
Stars: ✭ 19 (-20.83%)
Mutual labels:  encode
haystack bio
Haystack: Epigenetic Variability and Transcription Factor Motifs Analysis Pipeline
Stars: ✭ 42 (+75%)
Mutual labels:  encode
reverse-enginnering
open source repository
Stars: ✭ 29 (+20.83%)
Mutual labels:  decode
rtss
Relative TimeStamps for Stuff
Stars: ✭ 42 (+75%)
Mutual labels:  timestamp
Androidutilcode
AndroidUtilCode 🔥 is a powerful & easy to use library for Android. This library encapsulates the functions that commonly used in Android development which have complete demo and unit test. By using it's encapsulated APIs, you can greatly improve the development efficiency. The program mainly consists of two modules which is utilcode, which is commonly used in development, and subutil which is rarely used in development, but the utils can be beneficial to simplify the main module. 🔥
Stars: ✭ 30,239 (+125895.83%)
Mutual labels:  encode
record-encode-audio-from-browser
Record/Encode Audio on Browser using the WebAudio API and "ported" libraries.
Stars: ✭ 55 (+129.17%)
Mutual labels:  encode
WWW2020-grec
Future Data Helps Training: Modeling Future Contexts for Session-based Recommendation
Stars: ✭ 17 (-29.17%)
Mutual labels:  encode
video-quality-metrics
Test specified presets/CRF values for the x264 or x265 encoder. Compares VMAF/SSIM/PSNR numerically & via graphs.
Stars: ✭ 87 (+262.5%)
Mutual labels:  encode

Time Decode

A Python 3 timestamp and date decoder/encoder.

I noticed a lack of timestamp conversion utilities in a number of different linux systems. Since I happen to use linux in my day-to-day work I thought this would help.

This was developed with the Digital Forensics field in mind, so all of the testing has been done with the up-to-date SIFT Kit from SANS. If you have any questions, suggestions, helpful thoughts of any kind, please feel free to drop me a line.

Requirements

For python3, dateutil does not come pre-installed as a module. It will need to be installed manually:

sudo apt-get install python3-dateutil or python3 -m pip install python-dateutil

Install

python3 -m pip install time-decode or python3 -m pip install git+https://github.com/digitalsleuth/time_decode

This python script provides the following conversions from existing timestamps:

  • 128-bit SYSTEMTIME
  • 32-bit MS-DOS time, result is Local
  • Active Directory value
  • Bitwise decimal 10-digit
  • BPlist (as NSDate)
  • Cocoa Core (as NSDate)
  • DHCP6 DUID
  • Discord URL
  • exFAT
  • FAT Date + Time (wFat)
  • FILETIME
  • GMail Boundary
  • GMail Message ID
  • Google Chrome value
  • Google EI URL (thanks to http://cheeky4n6monkey.blogspot.com/2014/10/google-eid.html)
  • GPS
  • GSM
  • HFS(+) BE, HFS Local, HFS+ UTC
  • HFS(+) LE, HFS Local, HFS+ UTC
  • Hotmail
  • iOS 11+ (as NSDate)
  • KSUID 27-character
  • KSUID 9-digit
  • Mac Absolute Time (as NSDate)
  • Mac OS/HFS+ Decimal Time
  • Mastodon URL
  • Metasploit Payload UUID
  • Motorola's 6-byte
  • Mozilla's PRTime
  • MS Excel 1904 Date
  • .NET DateTime
  • Nokia 4-byte
  • Nokia 4-byte LE
  • Nokia S40 7-byte
  • Nokia S40 7-byte LE
  • OLE Automation Date
  • Samsung/LG 4-byte
  • Sonyflake URL (Sony version of Twitter Snowflake)
  • Symantec's 6-byte AV
  • TikTok URL
  • Twitter URL
  • Unix Hex 32-bit BE
  • Unix Hex 32-bit LE
  • Unix Milliseconds
  • Unix Seconds
  • UUID
  • VMWare Snapshot (.vmsd)
  • Windows 64-bit Hex BE
  • Windows 64-bit Hex LE
  • Windows Cookie Date (Low,High)
  • Windows OLE 64-bit BE (SRUM as well)
  • Windows OLE 64-bit LE

Note that HFS times are in Local Time, where HFS+ times are in UTC. MS-DOS 32 bit Hex values and MS-DOS FAT Date+Time are also in Local Time of the source generating the timestamp. All other times, unless expressly mentioned, are in UTC.

I have added a feature to 'guess' in what format the timestamp is that you've provided. This will run the timestamp you provide against all methods, and provide an output if human-readable. There is also the ability to convert a date-time to all of the aforementioned timestamps. Simply use the following command:

time-decode --timestamp "2017-06-02 13:14:15.678" or for timezones use: time-decode --timestamp "2017-06-02 13:14:15 -5"

The date/time you enter should be in the "YYYY-mm-dd HH:MM:SS.sss" format with the double-quote included, but does not require milli/micro/nano seconds to work. (Double-quote required for Windows Python) If anyone has any other timestamps they think should be added to this tool, please let me know.

References/Sources for all material can also be found in the docstrings in the python script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].