Detect Time Snippets


When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.

22 November, 2011   

Check out the Time in the Status Line at the bottom left.

17 January, 2013   

Code snippet for showing number guessing game by C++ program

Scripts used to calculate Daylight Saving Time (DST) for the US and EU. Valid for years 1900 to 2099. [DST wasn't adopted until the 1950s-1960s for US and 1990s for the EU] By: brad degrandis

10 October, 2012   

Converts a date or time from one timezone to another.

05 July, 2012   

Converts a date or time from one timezone to another.

PHP code to convert MySQL date to UNIX timestamp

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.

Using a stored procedure as the source in an OLE_DB Source for SSIS, the package can’t detect the output of the stored proc.

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.

08 October, 2014   

JavaScript code to detect browser and OS.

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