%@ LANGUAGE="JavaScript" %>
<%
/*** Clock -- beginning of server-side support code
by Andrew Shearer, http://www.shearersoftware.com/
v2.1-ASP, 2002-10-12. For updates and explanations, see
. ***/
/* Prevent this page from being cached (though some browsers still
cache the page anyway, which is why we use cookies). This is
only important if the cookie is deleted while the page is still
cached (and for ancient browsers that don't know about Cache-Control).
If that's not an issue, you may be able to get away with
"Cache-Control: private" instead. */
Response.AddHeader("Pragma", "no-cache");
/* Grab the current server time. */
var gDate = new Date();
/* Are the seconds shown by default? When changing this, also change the
JavaScript client code's definition of clockShowsSeconds below to match. */
var clockShowsSeconds = false;
function getServerDateItems() {
return gDate.getFullYear()+","+gDate.getMonth()+","+gDate.getDate()+","
+gDate.getHours()+","+gDate.getMinutes()+","+gDate.getSeconds();
}
function clockDateString(inDate) {
return ["Sunday, ","Monday, ","Tuesday, ","Wednesday, ",
"Thursday, ","Friday, ","Saturday, "][inDate.getDay()]
+ ["January ","February ","March ","April ","May ","June ",
"July ", "August ","September ","October ","November ","December "]
[inDate.getMonth()]
+ inDate.getDate() + ", " + inDate.getFullYear();
}
function clockTimeString(inHours, inMinutes, inSeconds) {
return (inHours == 0 ? "12" : (inHours <= 12 ? inHours : inHours - 12))
+ (inMinutes < 10 ? ":0" : ":") + inMinutes
+ (clockShowsSeconds ? ((inSeconds < 10 ? ":0" : ":") + inSeconds) : "")
+ (inHours < 12 ? " AM" : " PM");
}
/*** Clock -- end of server-side support code ***/
%>
Rio hostel - Albergue em Ipanema, Rio de Janeiro , Brazil
Rio Hostel - Melhor é sempre ficar no alto!
Endereço: Rua Caning 18, Casa 1
Ipanema, Rio de Janeiro
Email: riohostel@riohostelipanema.com
Tels.: +55 21 2287-2928
MSN : riohostelipanema@hotmail.com
De 09:00 às 22:00 (Horário do Brasil) <%=clockTimeString(gDate.getHours()+3, gDate.getMinutes(), gDate.getSeconds())%>
Rua Caning 18, Casa 1 - Ipanema - Rio de Janeiro
Tel: +55 21 - 2287-2928