DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • December 14, 2017, 04:40:07 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Display Time Until New Day  (Read 5760 times)
0 Members and 1 Guest are viewing this topic.
TeMpTeD
Guest
« on: May 04, 2005, 03:09:13 PM »

I am running a 9.7 server and I want to be able to show users how long until the new day...Anyone know the code for it? I searched 3 times before posting this...thanks.
-Tempted

NOTE: For 9.7 NOT 9.8 or 1.01
Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #1 on: May 04, 2005, 06:55:48 PM »

Where do you want said coding to be outputted?
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #2 on: May 04, 2005, 07:29:06 PM »

I am running a 9.7 server and I want to be able to show users how long until the new day...Anyone know the code for it? I searched 3 times before posting this...thanks.
-Tempted

NOTE: For 9.7 NOT 9.8 or 1.01

$time = gametime();
$tomorrow = strtotime(date("Y-m-d H:i:s",$time)." + 1 day");
$tomorrow = strtotime(date("Y-m-d 00:00:00",$tomorrow));
$secstotomorrow = $tomorrow-$time;
$realsecstotomorrow = $secstotomorrow / getsetting("daysperday",4);
output("`c`^Next new game day in: `$".date("G\\h, i\\m, s\\s \\(\\r\\e\\a\\l\\ \\t\\i\\m\\e\\)",strtotime("1981-01-01 00:00:00 + $realsecstotomorrow seconds"))."`0`c");
« Last Edit: May 04, 2005, 07:29:45 PM by robert » Logged

Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #3 on: May 05, 2005, 04:44:17 PM »

Yeah..that lol
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Chute
Guest
« Reply #4 on: September 05, 2005, 01:34:32 PM »

How would I go about adding this in the left information panel (Under Personal info or something)?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
19 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search