Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about time.h

Read more about time.h

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - time.h

C++ Checking if a string that is representing a date is 7 or more days before today date

I have a date stored as a string with the format %d.%m.%y, for example, "08.01.2022" and I want to check if at least 7 days have past since that day in C++. I attempted using this method: #...
test-img

Mikey

c++

datetime

time

iostream

time.h

Votes: 0

Answers: 1

Latest Answer

This answer doesn't actually attack your problem but offers an alternative solution using std::chrono (which would require C++20, and I think MSVC compiler for from_stream): #include <chrono> #i...
test-img

rturrado

time.h and printf(). My code does not print the correct time

The code below actually does wait for the specified amount of time given by the variable float sec, but the terminal print behavior is incorrect. It prints: start: 0.000000 s, end: 0.000000 s, ticker:...
test-img

Φίλ λιπ

c

terminal

io

do-while

time.h

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved