Jump to content
xisto Community
Sign in to follow this  
wappy

World Time Wap Page Page that tells many times ;-)

Recommended Posts

Here is a page created for wap that tells many different times around the world....

<?phpheader("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"\"http://forums.xisto.com/no_longer_exists/ "<!-- wappyTIME v1.00 -->\n";echo "<!-- Copyright (C) wappyCULT 2006-2007 -->\n";echo "<wml>";echo "<card title=\"wappyTIME\">";echo "<p>\n";echo "<small>\n";global $timezone;		$valandos=date("H")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "London - $data<br/>";$timezone=+1;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Berlin - $data<br/>";$timezone=+2;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Kiew - $data<br/>";$timezone=+3;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Moscow - $data<br/>";$timezone=+7;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Hong Kong - $data<br/>";$timezone=+8;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Tokio - $data<br/>";$timezone=+9;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Sydney - $data<br/>";$timezone=+19;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "New York - $data<br/>";$timezone=-10;global $timezone;		$valandos=date("h")+$timezone;		if ($valandos>23) $valandos=$valandos-24;		$data=date("".$valandos.":i");		echo "Alaska/Hawaii - $data<br/>";echo "---<br/><a href=\"index.php\">wappyCULT</a><br/>---<br/>© wappyTIME 2006-2007";echo "</small>\n";echo "</p>";echo "</card>";echo "</wml>";?>

Share this post


Link to post
Share on other sites

this one is better

<?phpheader("Content-type: text/vnd.wap.wml");header("display_errors=0");echo "<?xml version=\"1.0\"?>";echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"\"http://forums.xisto.com/no_longer_exists/ "<!-- eat *BLEEP* mother*BLEEP*ers -->\n";$New_Time = time() + (0 * 60 * 60);$time=date("H:i",$New_Time);echo "<wml>"; ?><card id="card1" title="World time"><p align="center"><small><b>World Wide Time</b><br/><?$gerNew_Time = time() + (0 * 60 * 60);$gertime=date("H:i",$gerNew_Time);echo "<br/>Berlin, Paris, Rome, Johhanesburg: $gertime";$helNew_Time = time() + (1 * 60 * 60);$heltime=date("H:i",$helNew_Time);echo "<br/>Helsinki, Ankara, Capetown: $heltime";$mosNew_Time = time() + (2 * 60 * 60);$mostime=date("H:i",$mosNew_Time);echo "<br/>Moscow, St. Petersburg, Baghdad: $mostime";$banNew_Time = time() + (6 * 60 * 60);$bantime=date("H:i",$banNew_Time);echo "<br/>Bangkok, Jakarta: $bantime";$bjinNew_Time = time() + (7 * 60 * 60);$bjintime=date("H:i",$bjinNew_Time);echo "<br/>Beijing: $bjintime";$tokNew_Time = time() + (8 * 60 * 60);$toktime=date("H:i",$tokNew_Time);echo "<br/>Tokyo, Seoul: $toktime";$sydNew_Time = time() + (9 * 60 * 60);$sydtime=date("H:i",$sydNew_Time);echo "<br/>Sydney: $sydtime";$welNew_Time = time() + (11 * 60 * 60);$weltime=date("H:i",$welNew_Time);echo "<br/>Wellington, Auckland: $weltime";$alsNew_Time = time() + (14 * 60 * 60);$alstime=date("H:i",$alsNew_Time);echo "<br/>Alaska: $alstime";$seaNew_Time = time() + (15 * 60 * 60);$seatime=date("H:i",$seaNew_Time);echo "<br/>Seattle, San Fransisco, LA: $seatime";$slcNew_Time = time() + (16 * 60 * 60);$slctime=date("H:i",$slcNew_Time);echo "<br/>SaltLake City, Phoenix, LA: $slctime";$chicNew_Time = time() + (17 * 60 * 60);$chictime=date("H:i",$chicNew_Time);echo "<br/>Chicago, Dallas, Mexico LA: $chictime";$nycNew_Time = time() + (18 * 60 * 60);$nyctime=date("H:i",$nycNew_Time);echo "<br/>New York, Miami, Quebec: $nyctime";$bNew_Time = time() + (20 * 60 * 60);$btime=date("H:i",$bNew_Time);echo "<br/>Beunos Aires, Brasilia: $btime";$hereNew_Time = time() + (23 * 60 * 60);$heretime=date("H:i",$hereNew_Time);echo "<br/>London, Dublin, Lisbon: $heretime";echo "<br/>";?></small></p></card> </wml>

:)
Edited by dj.dance (see edit history)

Share this post


Link to post
Share on other sites

Very nice, i like the extra times but think its a little clutted on smaller phones ;-)

Share this post


Link to post
Share on other sites

according to me dj has posted the better one..btw are u the same one of neocult.com? ben?

Share this post


Link to post
Share on other sites

Wappy's script is a bit easier on the eyes and easier to change, thanx for the script wappy :)

Share this post


Link to post
Share on other sites

no problem juice / and no im not ben from that site im chris from wappyCULT i found my neo cult logo on google image search. / yes dj.dance would post a better one if you look at it its my one updated. Dj.dance is my little stalker. Has hacked a few of my previous sites and goes round following me copying/and trying to out do my work all the time. You will notice i didn't bite at any of this here so he went away. And as juice says it looks messy, take a look with your mobile not a pc. Screen layout and fitting is very important when working with wap sites. My standard is to make sure it looks tidy on a series 40 nokia and it will look fine then on most phones. To me it looks like my little friend used a bigger nokia s60 screen as standard resulting in it looking messy on many phones ok :-)---infact i will tell you who wrote it first: toddy (a good friend) from toddywap.net (wap) wrote it for me a long time ago as back then it confused me.

Edited by wappy (see edit history)

Share this post


Link to post
Share on other sites

Parse error: syntax error, unexpected T_VARIABLE in /public_html/time.php on line 13

I don't know whats going on? :)

Share this post


Link to post
Share on other sites

It would be nice if some one would help with this world time page because I realy prefer wappy's one to dj's. So please wont some one help? :)

Share this post


Link to post
Share on other sites

juice are you sure you did not make the error? I see no error and i copy and pasted it directly from the script i used on s60.nerds.at maybe you made a typing error when copying it? / thanks but yes when building wap scripts its very important to check how they look on different phones with different operating systems and screen sizes. Some errors like display errors in wml code will be picked up on some phones but not others so if on pc or smart phone you might not notice until someone points it out :-)

Share this post


Link to post
Share on other sites

Wappy I didn't make any mistakes but it's ok, I'll learn a bit more and then I'll fix it :P . It can't be that hard can it? <_<

Share this post


Link to post
Share on other sites

see i told you it wasn't me. How could it be when its working for me when i use it and its exactly the same page that i used. Some hosts are strange and don't like stuff. Prob php version or something im not sure.

Share this post


Link to post
Share on other sites

Forget about it guys, there is no reason to be fighting over hosts and PHP versions :D It's only a time page and if I really wanted another one I would have found one.

Edited by juice (see edit history)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.