Get Time Snippets


JavaScript code to get time intervals between two Dates

21 April, 2012   

Retrieves a list of "on call" incidents for the most recent time period. Selects all Support Analysts.

08 February, 2016   

A type of replacement function within the SELECT statement.

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"

Mysql Code example to find events made between two times not between two dates.

26 February, 2011   

Here shown how to highlight syntax

13 October, 2012   

Code example to show current date and time

03 November, 2011   

Here are some simple examples of using the functions with your variables. Run these from any ".asp" page and watch what happens

16 February, 2011   

HTML5 Article Structure with hNews

HTML5 code for Article Structure with hNews

Handy helper function which parses about any date and returns the same date in MySQL date/time format.

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs.

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs:

26 December, 2011   

Example PHP code to navigate calender in HTML pages

19 November, 2014   

Enable a link after a set period of time.

04 July, 2011   

Animation with threads by John E. Grayson

02 November, 2016   

A PHP template for dealing with any sort of error

03 October, 2013   

Basic commands for reading a text file one line at a time.

A javaScript loop example with Do While loop