Hello all,
Is there any reason for a PHP script to return a fatal error of:
Fatal error: Maximum execution time of 60 seconds exceeded in
H:\xampplite\htdocs\mlm\tera.php on line 1
When my PHP ini is set to "300000" and further more I set set_time_limit(300000); in the script itself. Safemode is off. In addition, Apache's timeout ha...
Is it possible to use time_ago_in_words with i18n.locale?
how?
thanks
...
Hi there,
On Unix, is there a command to display a file's modification time, precise to the second?
On Linux this is easily done with a "stat -c %y", which returns something like 2009-11-27 11:36:06.000000000 +0100. I found no equivalent on Unix.
...
Simple Request - I want to be able to display the current time within my WPF application window. Are there free controls out there for this? Just need to display the time, nothing else.
...
I am adding the current date and time to my database using the following code:
$current_date_time = time();
echo date('n/j/y g:ia',$current_date_time);
It shows up as 11/29/09 12:38am when it should be 11/29/09 11:38am
The time is ahead by one hour. I am in the Pacific time zone and my hosting provider is in Utah, the Mountain Time...
Hi all.
I'm currently working on a project using C++ and DirectX9 and I'm looking into creating a light source which varies in colour as time goes on.
I know C++ has a timeGetTime() function, but was wondering if anyone knows of a function in HLSL that will allow me to do this?
Regards.
Mike.
...
Does anyone know of a good class / library to convert English representations of time into timestamps?
The goal is to convert natural language phrases such as "ten years from now" and "three weeks" and "in 10 minutes" and working out a best match unix timestamp for them.
I have hacked up some pretty poor and untested code to get going ...
I'm looking for some good tools/scripts that allow me to generate a few statistics from a git repository. I've seen this feature on some code hosting sites, and they contained information like...
commits per author
commits per day/week/year/etc.
lines of code over time
graphs
... much more
Basically I just want to get an idea how muc...
How do I compare times in python?
I see that date comparisons can be done and there's also "timedelta", but I'm struggling to find out how to check if the current time (from datetime.now()) is earlier, the same, or later than a specified time (e.g. 8am) regardless of the date.
...
I have a total ammount of milliseconds (ie 70370) and I want to display it as minutes:seconds:milliseconds ie 00:00:0000.
How can I do this in PHP?
...
what i need to do, is have two defined strings that is inputted by the user,
string in = "9:35"; //am
string out = "11:55"; //am
and i need to subtract them, so that would get the total hours that they were signed in. which should equal:
string total = "2:20"
then, i need to convert that into a decimal.. so, 2:20 would be
string...
Hello,
I need to create a table with the following structure:
calendar week; week start date; week end date
which contains all weeks beginning in 2007 until the current week.
The special thing is, that when an end of month falls within a week, the week is cut in two slices - one record that has a start date that is the beginning of ...
I have a web application that displays datetime stamps on every page, for example:
December 12, 2009 6:00 pm
I would like to dynamically detect the user's timezone and alter the display using JavaScript.
So the New York user would see:
December 12, 2009 6:00 pm
While the California user would see:
December 12, 2009 3:00 ...
Hi everyone,
Have a list of dates in excel in the format (this comes originally from csv):
23/11/09 07:27:02
23/11/09 08:01:50
23/11/09 08:38:58
23/11/09 09:40:01
What I want to do is count the number of these falling between hour blocks, like 7-8, 8-9, 9-10 etc
Not sure how to get started, but one idea was just to put logic statemen...
How would I check if a date in the format "2008-02-16 12:59:57" is less than 24 hours ago?
...
Hello all,
I am working on implementing a function that would execute another function a few seconds in the future, depending upon the user's input. I have a priority queue of a class (which I am calling TimedEvent) that contains a function pointer to the action I want it to execute at the end of the interval. Say for instance that th...
Sorry for the title....In PHP I use the date('w',mydate) to get the week and then I got the week of the date.If user clik next week it increments the current week by one.
For example date('w',2009-12-10 05:00:00) it returns week as 50.if i click next week button iincrement as 51 and display the dates.at the end of 53 eeks also it takes ...
I've little idea of how arrays are implemented in PHP, and know that for most OOP languages the complexity is one of constant time, O(1), for an array of a predefined type. So what's the deal in PHP with it's dynamic typing, extending arrays, etc.?
...
This command gets some data from MySQL and then manipulates it. Why is the 'real' time so much higher than the 'user' time?
>time ./command.rb
real 45m45.457s
user 3m36.478s
sys 0m28.226s
For clarification - I understand the difference between the real, user, and sys output. However, I am confused at why there is such a gre...
Right now i am loading a file then using gettimeofday and tracking the CPU time with tv_usec
My results varies, i get 250's to 280s but sometimes 300's or 500's. I wrote usleep and sleep (0) and (1) with no success. The time still varies vastly. I thought sleep(1) (seconds in linux, not the windows Sleep in ms) would have solved it. How...