Top "Ctime" questions

The upper date limit is 12/31/3000.

precise time measurement

I'm using time.h in C++ to measure the timing of a function. clock_t t = clock(); someFunction(); printf("\nTime …

c++ visual-studio-2010 chrono ctime
Random Boolean Value

I'm trying to generate a random int that is either 0 or 1 in C++. Right now, I receive a 0 every time …

c++ random ctime
How to select random letters in c++

Hi I'm working on an hangman project for my final in my c++ class. I've got most of it working …

c++ arrays random ctime
fprintf and ctime without passing \n from ctime

I have an issue with inserting time in a text file. I use the following code and i get |21,43,1,3,10,5| Wed …

c file text-files printf ctime
error C4996: 'ctime': This function or variable may be unsafe

I have a large project about static source code analysis, and everything compiles successfully, except for one thing. I have …

c++ compiler-errors unsafe ctime
Convert long int to const time_t

I have variable tmit: long tmit;. I got error in this code: printf("Time: %s",ctime(&tmit)); And error …

c++ ctime
Pass system date and time as a filename in C++

I wanted to make an Attendance system which would take system date and time as file name of the file …

c++ fstream ctime
Formatting Unix timestamp with ctime in c

I'm trying to format a 10-digit Unix time stamp (currently a string) using ctime. However, ctime() expects a parameter of …

c unix unix-timestamp ctime
C++ - 'localtime' this function or variable may be unsafe

I am writing a simple logging class in C++ for learning purposes. My code contains a function that returns a …

c++ date datetime localtime ctime
Looking for good FILETIME converter

In question Looking for Good CTIME/Unixtime converter I asked for a good web based CTIME (Seconds since Jan 1, 1970) time …

time active-directory ctime