EN
Date & time - add to / subtract from (Cross technology)
4
points
Problem | Cross | JS/Node | Java | C# | Python | Bash | PHP | C++ |
---|---|---|---|---|---|---|---|---|
add milliseconds to date | link | link | ||||||
add seconds to date | link | link | ||||||
add minutes to date | link | link | ||||||
add hours to date | link | link | ||||||
add days to date | link | link | ||||||
add months to date | link | link | ||||||
add years to date | link | link | ||||||
subtract milliseconds from date | link | link | ||||||
subtract seconds from date | link | link | ||||||
subtract minutes from date | link | link | ||||||
subtract hours from date | link | link | ||||||
subtract days from date | link | link | ||||||
subtract months from date | link | link | ||||||
subtract years from date | link | link |
TODO:
- NANOS
- MICROS
- MILLIS
- SECONDS
- MINUTES
- HOURS
- DAYS
- WEEKS
- MONTHS
- YEARS
See also:
- Metric time
- International System of Units (SI)
- Non-SI units mentioned in the SI
- Orders of magnitude (time)
- Metric prefix
References: