CppToday
What day is it today? A minimal C++23 program.
|
Prints the current date in the YY/MM/DD = Www
format.
More...
#include <chrono>
#include <format>
#include <iostream>
#include <string>
Macros | |
#define | VERSION "develop" |
Functions | |
std::string | get_today_formatted () |
Retrieves today's date and formats it as a string. | |
void | show_help () |
void | show_version () |
int | main (int argc, char *argv[]) |
Main entry point of the program. | |
Prints the current date in the YY/MM/DD = Www
format.
std::string get_today_formatted | ( | ) |
Retrieves today's date and formats it as a string.
Returns a string in the YY/MM/DD = Www
format, e.g.
int main | ( | int | argc, |
char * | argv[] ) |
Main entry point of the program.
Prints the formatted current date string to standard output.