CppToday
What day is it today? A minimal C++23 program.
Loading...
Searching...
No Matches
today.cpp File Reference

Prints the current date in the YY/MM/DD = Www format. More...

#include <chrono>
#include <format>
#include <iostream>
#include <string>
Include dependency graph for today.cpp:

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.
 

Detailed Description

Prints the current date in the YY/MM/DD = Www format.

Function Documentation

◆ get_today_formatted()

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.

25/05/14 = Wed
Returns
std::string Formatted date string representing today's date.
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

Main entry point of the program.

Prints the formatted current date string to standard output.

Returns
int Exit code (0 for success).
Here is the call graph for this function: