Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firee1/cpp-get-time
Prints time as 'time_t' and 'ctime'.
https://github.com/firee1/cpp-get-time
cpp cpp17 ctime time
Last synced: 27 days ago
JSON representation
Prints time as 'time_t' and 'ctime'.
- Host: GitHub
- URL: https://github.com/firee1/cpp-get-time
- Owner: FireE1
- Created: 2024-06-11T11:09:16.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T11:48:43.000Z (5 months ago)
- Last Synced: 2024-10-12T16:20:11.628Z (27 days ago)
- Topics: cpp, cpp17, ctime, time
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cpp-get-time
This is a simple program, that prints time as 'time_t' and 'ctime'. Used as cheat sheet for me to write more complex programs.## Why you need 'time_t' and 'ctime':
'time_t' format can be used to transfer/compare time between languages, so you dont need to force cast it to **SoMeThInG**.
'ctime' gives you full information about time and date, so you can use it as... calendar?## Why this program exist:
I was working on pet-project, that represent sending delayed queued messages to multiple social networks at the same time, so content creators can manage their social media convenient and efficient. 'time_t' can be stored in DB, can be send from client to server and so on.## Usage:
Pass one of arguments in console, such as ```now, from_now, zero```.## Build requirements:
- C++17 (STL)
- Clang++ 17