ctime

Looking for good online CTIME/Unixtime converter

I need an online tool that you can paste a CTIME (Unixtime) timestamp into, and get out a nice human readable date string. I know how to call the functions in the various tools I use, but I want one publically available to just pawn off to a customer. ...

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 converter. (Usually a 32 bit signed integer). I needed a tool where I could enter a date, and get the CTIME equivalent. I was able to find one, once I realized that Unixtime is the other name for the format. Googl...

What do ctime, atime and mtime of /dev/tty7 suppose to mean on a Linux that runs X?

What do ctime, atime and mtime of /dev/tty7 suppose to mean on a Linux that runs X? Perhaps ctime is the time X started? It seems that I got conflicting results for atime and mtime... the time a key was pressed? the time something was written to the screen? If it depends on the distribution, I'm particularly interested in the answer f...

Initializing static struct tm in a class

Hi all, I would like to use the tm struct as a static variable in a class. Spent a whole day reading and trying but it still can't work :( Would appreciate if someone could point out what I was doing wrong In my class, under Public, i have declared it as: static struct tm *dataTime; In the main.cpp, I have tried to define and initia...

parse localtime in c++

Is there an easy "beginner" way to take the current time using to a Date object that has int month int day int year for it's member variables? Thanks. ...

How do you obtain a formatted date and time for the current locale in C?

What C function should I call to obtain a formatted date and time for the locale where the program is being executed? I'm asking this question because I have run into a problem using the ClamAV daemon API. The VERSION command returns the date and time of the latest virus definitions, but the code uses a call to ctime to format it. As fa...

Bug in creating MFC archives in Windows mobile 6

In a VS2008 debug build of my Windows mobile 6 application, I'm getting an exception thrown whenever I try to write to a newly created CFile using a CArchive. The call stack, with relevant code inserted, is as follows; MFC90UD.DLL!ATL::CTime::CTime(int nYear = 60056, int nMonth = 5, int nDay = 27, int nHour = 22, int nMin = 44, int nSe...

C++ and CTime & System clock changing

Hello. I want to write simple application in C++ using ctime library. I'm getting the actual time and do some calculation in the loop. Very important for me is the fact that user can modify OS clock during calculations. Is there any way to get to know inside my app if the user has changed OS clock? Thnx for help in advance. PS. This ap...

PHP - linux/unix CTIME (inode change time) is being set when it's only being modified.

According to: http://www.php.net/manual/en/function.filectime.php "In most Unix filesystems, a file is considered changed when its inode data is changed; that is, when the permissions, owner, group, or other metadata from the inode is updated." However, running Debian linux (uname -r: 2.6.26-2-686) when I access and write to a file, s...

With python: intervals at x:00 repeat

How do I sched a repeat timer for 5 min intervals. Which fire at 00 seconds, then repeat at 00. Ok, not hard real-time but as close as possible with sys lags. Trying to avoid a build up in lags and get near 00. Lang: Python, OS: WinXP x64 System has 25ms resolution. Any code would be helpful, tia ...

How do I convert a time to tm struct instead of CTime class

Hello. I currently have code that creates a CTime object from a defined value. #define TIME_VALUE 0x301DDF00 // Aug 1, 1995 @ 04:00:00 CTime t = CTime( TIME_VALUE ); This creates the desired date of Aug 1, 1995 04:00:00 I can no longer use CTime so I am trying to use time_t and tm instead. Since the CTime constructor takes in the ...