Getting the current date
Basic types / Date and time
Getting the current date
Converting from a string
Converting to a string
Comparing dates
Creating a date
Getting the year, month, day
Date arithmetic
Interval between two dates
#include
<
iostream
>
using
namespace
std
;
time_t
now =
time
(
0
);
cout <<
"now is "
<< now;
Languages
Python
C
Java
C#
JavaScript
R
Rust
Golang
Delphi
PHP
Ruby
Swift
Kotlin
Lua
TypeScript
Clojure
Bash
Objective-C