Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Today, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot, Google, Yandex, Yahoo!, Majestic-12

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Current_time/localtime questi...
Forum Rules | Mark all | Recent Posts

Current_time/localtime questions
< Newer Topic :: Older Topic > I'm feeling slightly ambitious :P

Pages:<< prev 1 next >>
* #1 Jul 19, 2011, 4:26 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Okay, so, I'm looking to fix the time that shows when I use the do_time function. I can't seem to figure out how to appropriately offset the time in relation to the servers localtime (it's behind by 5 hours, silly Zeno). Any guidance would be helpful.

Note: When I run it from MY computer via cygwin, the times come up appropriately, which means it's the server's clock that has the issue, and I'm just compensating for this until such a time that it's no longer needed.

Cheers,
Aurin
       
Post is unread #2 Jul 19, 2011, 5:20 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Yeah I have to fix that. I do, but it gets set back to the wrong timezone on reboot.

Anyway, you just add/subtract the seconds to the current time. So if you wanted to change the time by +5 hours, you'd do something like time = 18000+time(), I forget the exact function names.
       
Post is unread #3 Jul 19, 2011, 6:11 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Ahh...didn't realize I could simply do that. Thanks Zeno. :) Just wanted to have accurate times for people to use.
       
Pages:<< prev 1 next >>