Skip to content

Can3299/Timestamp-To-Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

UnixTimestampToTime

A pair of simple and lightweight C++ command-line utilities for converting Unix timestamps into human-readable date and time formats. Useful for debugging logs, converting database timestamps, or working with epoch-based systems.


๐Ÿ“ฆ Included Tools

Converts a timestamp provided in milliseconds/seconds into a formatted date/time string. Features:

  • Directly converts and prints the formatted date/time.
  • Accepts Unix timestamp in milliseconds/seconds.
  • Outputs result in: YYYY-mm-dd HH:MM:SS

๐Ÿ› ๏ธ Build Instructions

Compile using a C++11-compatible compiler:

g++ MsToTime.cpp -o MsToTime
g++ SecToTime.cpp -o SecToTime

โ–ถ๏ธ Usage

Milliseconds Timestamp

./fileName
> *<timestamp>*

Both programs will print the converted timestamp in human-readable form.


๐Ÿ“ File List

  • UnixTimestampToTime/src/c++/MsToTime.cpp โ€” Milliseconds-to-time converter
  • UnixTimestampToTime/src/c++/SecToTime.cpp โ€” Seconds-to-time converter

๐Ÿ“œ License

MIT

About

Lightweight utilities designed to convert Unix timestamps into human-readable date/time strings.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages