Adjust Server Time Snippets


21 January, 2011   

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.

07 April, 2014   

Adding a linked server to MSSQL account - particularly a MYSQL server

02 November, 2016   

A PHP template for dealing with any sort of error

JavaScript code to get time intervals between two Dates

Below example showing how to define and use asp:AccessDataSource

An example code how to define and use asp:AccessDataSource

28 March, 2013   

Delphi code - Is running in terminal server

This will return the number of seconds between now and when the time field was inserted.

22 June, 2014   

To test in other timezones, replace '-5' with your local standard time GMT offset.

How to disable Future Dates in AJAX Control Toolkit CalendarExtender Control. Author of this code is Mudassar Khan

12 May, 2012   

How to prevent users from selecting past or previous day dates in ASP.Net AJAX Control Toolkit CalendarExtender control. Author of this code is Mudassar Khan

19 June, 2012   

Changes the brightness of a bitmap by a given Delta value in range -255..+255.

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.

14 June, 2015   

This function helps you checking a UNIX timestamp with human readable time formats like 1m, 2d or 4y.

30 March, 2011   

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...

23 January, 2013   

Adjusted for daylight saving or standard time as appropriate.

04 May, 2011   

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...

09 October, 2011   

Example shows how to get the database date and time.

25 February, 2013   

AppleScript code example to restart Django development server

03 March, 2011   

Count Script Execution Time