Handy helper function which parses about any date and returns the same date in MySQL date/time format.
By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.
This function helps you checking a UNIX timestamp with human readable time formats like 1m, 2d or 4y.
MySQL code to Find PHP code in database Drupal 6.x
Show the currently active processes.
It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.
This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.
Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.
C source code example for using struct tm, time_t, and time to create a simple clock
This will return the number of seconds between now and when the time field was inserted.
To test in other timezones, replace '-5' with your local standard time GMT offset.
In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....
Below is a basic feedback form script 'feedback.asp'. You can add your own validation. Once the visitor has filled in all the form textfields an email will be sent with the feedback details including the date and time and the visitor's IP address to the email specified in the script.
Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...
Adjusted for daylight saving or standard time as appropriate.
Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...
Finds all scene elements that belong to missing plugins, original code by Larry Minton
Example shows how to get the database date and time.
Simple Javascript snippet that lets you toggle a group of checkboxes on or off at the same time. This is the format for your HTML form.
If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA. No specific units are stated.