»
AnglaisFran�aisVietnamien

Imprimer - Time Zone Hawaii par script - JavaScriptBank.com

Version compl�te: jsB@nk » Heure » Horloge » Time Zone Hawaii par script
URL: https://www.javascriptbank.com/time-by-hawaii-zone-script.html

Time Zone Hawaii par script © JavaScriptBank.comPeu importe le temps que vous êtes dans la zone, ce script vous indique la date et l'heure à Hawaii et de votre date et heure. Deux formats d'affichage du code de American Standard Code et UTC. Idéal pour les sites commerciaux qui font le pont des fuseaux horaires différents ou de même pour les sites internationaux. Short and sweet, ce code est facile de manipuler de n'importe où dans le monde ... pas seulement à Hawaï. S'il vous plaît distribuer librement.

Version compl�te: jsB@nk » Heure » Horloge » Time Zone Hawaii par script
URL: https://www.javascriptbank.com/time-by-hawaii-zone-script.html



JavaScript
<SCRIPT language=JavaScript>// Author: Ravenfunction HawaiiTimeString(iDate) {// Needed for both Time Functionsvar theTime = iDate.getTime()// If wanted, shows local time.var myTime = iDate.toLocaleString()var myUTCTime = iDate.toString()// To figure the Time Zone at Hawaii Standard Time// Best for American Sitesvar myTimeZone = iDate.getTimezoneOffset()/-60var HawaiiTimeZone = -10var hourDiff = (myTimeZone - HawaiiTimeZone)var HTimeDiff = hourDiff*3600000var HTimeStandard = theTime-HTimeDiffvar HawaiiTime = iDate.toLocaleString(iDate.setTime(HTimeStandard))// To figure the Time Zone at Hawaii UTC using GMT// Best for International Sitesvar GMTZone = iDate.toGMTString()var GMTTime = iDate.getTime(iDate.toGMTString())// HiTime are the Hours in Milliseconds (360,000) times the Hawaii Time Zone of -10// Adjust code for your Time Zonevar HiTime = theTime-(36000000)var UTCHiTime = iDate.toGMTString(iDate.setTime(HiTime))return "Hawaii Standard Time is: " + "<u>"+ HawaiiTime + "</u>" +"<p>UTC Hawaii Time is: " + "<u>" + UTCHiTime + "</u>" +"<p>Your Time is: " + "<u>" + myTime + "</u>" + "<p>Your UTC Time is: " + "<u>" + myUTCTime + "</u>"}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<SCRIPT>document.write(HawaiiTimeString(new Date()))</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->