Search
 
SCRIPT & CODE EXAMPLE
 

CPP

cpp set time

#include <time.h>

struct tm time = { 0 };

time.tm_year = Year - 1900;
time.tm_mon  = Month - 1;
time.tm_mday = Day;
time.tm_hour = Hour;
time.tm_min  = Minute;
time.tm_sec  = Second;

if (time.tm_year < 0)
{
    time.tm_year = 0;
}

time_t t = mktime(&time);

if (t != (time_t) -1)
{
    stime(&t);
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: char * to string c++ 
Cpp :: convert c++ to mips assembly code online 
Cpp :: what does for do in c++ 
Cpp :: cout<<"helloworld"<<endl problem 
Cpp :: do while loop c++ 
Cpp :: why ostream cannot be constant 
C :: remix icon cdn 
C :: how to create random integers from a specific range in c language 
C :: c distance in the cartesian plane 
C :: debian apt force overwrite 
C :: ruby absolute value 
C :: roll binary c 
C :: print boolean value in c 
C :: line counter in c 
C :: Write a C program to find reverse of an array 
C :: Calculator_C 
C :: execute maven project in cmd 
C :: 0/1 knapsack problem in c 
C :: va_list in c 
C :: how to print value of pointer in c 
C :: write array of char to file in c 
C :: how to modulo in c without % 
C :: go Iterating over an array using a range operator 
C :: c string to int 
C :: #define arduino 
C :: how i send custom data in model field rest_framework serializer 
C :: Program to input and print array elements in c 
C :: printf("%3d ",XX); 
C :: replace a substring with another substring in c 
C :: pandoc set margins pdf 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =