Top "Ctime" questions

The upper date limit is 12/31/3000.

How to neatly initialize struct tm from ctime

Consider these two ways to get an epoch time from a date formatted as a string: #include <iostream> …

c++ c++11 ctime
How do you include time_t on an Arduino?

I am trying to compile and upload one of the example WiFly projects to my Arduino. One of the example's …

c++ arduino ctime
How do I get system up time in milliseconds in c++?

How do I get system up time since the start of the system? All I found was time since epoch …

c++ time ctime
Initializing static struct tm in a class

I would like to use the tm struct as a static variable in a class. Spent a whole day reading …

c++ class static struct ctime
How do I printf a date in C?

I'm trying to print a date from a string like "01/01/01" and get something like "Monday First January 2001. I found something …

c date ctime
c/c++ microsecond timestamp

I used this piece of code to get timestamp in microsecond in c/c++. but it doesn't look like microsecond. …

c++ c ctime time.h
Dealing with daylight savings time - C++

Given an input date and time (in string format), I am trying to get the epoch time for it using …

c++ time timezone dst ctime
How to convert a time_t type to string in C++?

Is it possible to convert a ltm->tm_mday to string, please ? I've tried this, but, this wouldn't work ! …

c++ string ctime
Addition some interval to tm structs

I have one struct tm. And I need to add some fixed interval (given in xx years, xx months, xx …

c time-t ctime
How to modify 'last status change' (ctime) property of a file in Unix?

I know there's a way to modify both 'modification' (mtime) and 'last access' (atime) time properties of a given file …

unix ctime