WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder



Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : ISO 8601 date/time javascript
Categories : Java Script, Date Time Update Picture
john walker
Date : Oct 21st 2000
Grade : 4 of 5 (graded 4 times)
Viewed : 43621
File : isodatetimescript.html
Images : No Images for this code example.
Search : More code by john walker
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 



<!--

COLOPHON

TITLE
TempersFewGit v 2.1 (ISO 8601 Date/Time script)

OBJECTIVE
Javascript script to detect the time zone where a browser
is and display the date and time in accordance with the
ISO 8601 standard.

AUTHOR
John Walker
321WebLiftOff.net
[email protected]

ENCOMIUM
Thanks to Stephen Pugh for his help.

CREATED
2000-09-15T09:42:53+01:00

REFERENCES
For more about ISO 8601 see:
www.w3.org/TR/NOTE-datetime
www.cl.cam.ac.uk/~mgk25/iso-time.html

COPYRIGHT
This script is Copyright 2000 JF Walker All Rights
Reserved but may be freely used provided this colophon is
included in full.

ENDS

-->

<!-- THREE STEPS TO INSTALL ISO CLOCK:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document

-->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
function isodatetime() {
var today = new Date();
var year = today.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
var month = today.getMonth() + 1;
var day = today.getDate();
var hour = today.getHours();
var hourUTC = today.getUTCHours();
var diff = hour - hourUTC;
var hourdifference = Math.abs(diff);
var minute = today.getMinutes();
var minuteUTC = today.getUTCMinutes();
var minutedifference;
var second = today.getSeconds();
var timezone;
if (minute != minuteUTC && minuteUTC < 30 && diff < 0) { hourdifference--; }
if (minute != minuteUTC && minuteUTC > 30 && diff > 0) { hourdifference--; }
if (minute != minuteUTC) {
minutedifference = ":30";
}
else {
minutedifference = ":00";
}
if (hourdifference < 10) {
timezone = "0" + hourdifference + minutedifference;
}
else {
timezone = "" + hourdifference + minutedifference;
}
if (diff < 0) {
timezone = "-" + timezone;
}
else {
timezone = "+" + timezone;
}
if (month <= 9) month = "0" + month;
if (day <= 9) day = "0" + day;
if (hour <= 9) hour = "0" + hour;
if (minute <= 9) minute = "0" + minute;
if (second <= 9) second = "0" + second;
time = year + "-" + month + "-" + day + "T"
+ hour + ":" + minute + ":" + second + timezone;
document.isoclock.display.value = time;
window.setTimeout("isodatetime();", 500);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="isodatetime()">

<!-- STEP THREE: Copy this code into the BODY of your HTML document -->

<center>
<form name=isoclock>
<input type=text name=display size=22 style="border:0;">
</form>
</center>

</body>




PHP Calendar
Categories : PHP, Calendar, Date Time, Java Script, CSS
Simple Javascript CSS Digital Clock
Categories : Java Script, Date Time, CSS, Beginner Guides, Web Design
Higly Customizable Javascript Calendar Script
Categories : Java Script, Calendar, Date Time, HTML, CSS
Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, Date Time
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Java Script which implements a Clock (Client Side)
Categories : Java Script, Date Time
Local-to-user date and time display regardless of time zone or where the website's server is located
Categories : PHP, Date Time, HTML and PHP, Java Script
Local Time clock and Server time usign PHP and JavaScript
Categories : PHP, Java Script, Date Time, Beginner Guides
enhanced date picker with jcript checking for a dynamic date input
Categories : PHP, Java Script, Date Time, Calendar, Arrays
Date Validation using JavaScript. Intended to use it as checkdate() from PHP.
Categories : Java Script, Date Time, PHP
Clock at Status Bar
Categories : Java Script, HTML, Date Time
Javascript Date Picker
Categories : Java Script, Date Time, Calendar
Form Processing : with alert Highlight field name which is not filled by user
Categories : Java Script, Form Processing, Data Validation, Beginner Guides, Web Design
Shell script to calculate the day of the week, given a date DD MM YYYY
Categories : Shell Scripting, Date Time
Bs_StopWatch is a class to measure time intervals in microseconds.
Categories : PHP, Date Time, PHP Classes
 Tim N wrote :1817
This JavaScript code is deprecated since it is still using the getYear() method of date that Microsoft Internet 
Explorer badly implemented in search for a Y2K bug. Any 
modern implementation should be using getFullYear() method 
instead that Microsoft Internet Explorer implemented 
correctly.