Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/C++/Library/Dates and time

C++ dates and time

Calculate a delivery date or count nights between bookings.

std::strftimestd::chrono::duration_caststd::mktime
  • std::chrono::duration_castConvert a signed delay to whole seconds
  • std::mktimeCalculate a delivery date across leap day
  • std::strftimePrint a consistent date on a receipt

All C++ library sections

C++ tutorials

Environment setup› Library reference› Data structures› Code examples›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy