Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2008, 07:08 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
getTimeStamp()

I think it would be nice if there were some way to get a timestamp. Instead of calculating it all out with timevar2, it would be handy to return the same timestamp as it would appear on logs. This would enable scripters to create logs in different directories as well as numerous other uses.

Maybe I'm wrong and there's already a function like this?
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #2  
Old 11-06-2008, 08:33 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
You could script some kind of class for getting a timestamp. However, I agree that it would be handy to have a function like this built-in. Maybe even something similar to PHP's date() function.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 11-06-2008, 10:32 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I use HR's time system for this, works like a charm.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 11-06-2008, 11:20 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
If somebody were to script this, couldn't Skyld just add it in with the shared functions pack? shared.date(PHP date() format), would be optimal, but something like shared.timestamp() with a single format (MM/DD/YYYY HH:MM:SS or something) would work just fine.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #5  
Old 11-06-2008, 11:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by napo_p2p View Post
Maybe even something similar to PHP's date() function.
I think this would work well.
__________________
Reply With Quote
  #6  
Old 11-07-2008, 12:02 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by LoneAngelIbesu View Post
If somebody were to script this, couldn't Skyld just add it in with the shared functions pack? shared.date(PHP date() format), would be optimal, but something like shared.timestamp() with a single format (MM/DD/YYYY HH:MM:SS or something) would work just fine.
Yes, but the most useful use for this function would be serverside.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #7  
Old 11-07-2008, 12:50 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Tigairius View Post
Yes, but the most useful use for this function would be serverside.
I wasn't aware that shared functions were limited to clientside use...

EDIT: Could you explain the reason why a shared functions pack can't be serverside?
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan

Last edited by LoneAngelIbesu; 11-07-2008 at 01:00 AM..
Reply With Quote
  #8  
Old 11-07-2008, 02:15 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by LoneAngelIbesu View Post
I wasn't aware that shared functions were limited to clientside use...

EDIT: Could you explain the reason why a shared functions pack can't be serverside?
It can, it's like a class joined to the player. All you need is some functions serverside, and I guess Skyld have to do that.
__________________
Reply With Quote
  #9  
Old 11-07-2008, 02:22 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Chompy View Post
It can, it's like a class joined to the player. All you need is some functions serverside, and I guess Skyld have to do that.
The problem is player would have to be in scope.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #10  
Old 11-07-2008, 03:00 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Tigairius View Post
The problem is player would have to be in scope.
What do you mean by that? On Valikorlia, we add classes to players on the serverside using a simple onActionPlayerOnline().
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #11  
Old 11-07-2008, 03:38 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by LoneAngelIbesu View Post
What do you mean by that? On Valikorlia, we add classes to players on the serverside using a simple onActionPlayerOnline().
Maybe you're not dealing with a player. Maybe you've got a database NPC running every hour or so logging something.
__________________
Reply With Quote
  #12  
Old 11-07-2008, 05:02 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Chompy View Post
It can, it's like a class joined to the player. All you need is some functions serverside, and I guess Skyld have to do that.
Quote:
Originally Posted by LoneAngelIbesu View Post
What do you mean by that? On Valikorlia, we add classes to players on the serverside using a simple onActionPlayerOnline().
I expected better from you guys.
__________________
Reply With Quote
  #13  
Old 11-07-2008, 05:46 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
I expected better from you guys.
Seconded.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 11-07-2008, 06:04 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Quote:
Originally Posted by DrakilorP2P View Post
I'm too lazy to write my own niche scripts, please do it for me Stefan.
That's not what is being said. Obviously he's already done his own, and found that it isn't what he considers to be very efficient to be scripted, so he is asking that it be made a built-in feature.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #15  
Old 11-07-2008, 06:27 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by TSAdmin View Post
That's not what is being said. Obviously he's already done his own, and found that it isn't what he considers to be very efficient to be scripted, so he is asking that it be made a built-in feature.
Hell Raven's time system does what's being asked in this thread perfectly.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #16  
Old 11-07-2008, 02:00 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by LoneAngelIbesu View Post
I wasn't aware that shared functions were limited to clientside use...

EDIT: Could you explain the reason why a shared functions pack can't be serverside?
The shared functions are in a privileged weapon on the login server, which is added to the player when they connect to the login server but is not removed upon changing server. This allows the functions to work clientside on all servers, all the time. The reason that it can't work serverside is because that would require each server to also maintain a copy of the shared functions pack that's always up-to-date, and the client can't carry it's own serverside script because usually, the client is sent byte-coded clientside scripting and doesn't know anything of the serverside portion.

For it to be able to transport serverside code in the same way, the server and client would need to be modified to accept serverside code from the client, and that would be awfully insecure, but I don't know whether some way of automatically copying the shared functions script from the login server to other servers periodically would work.
Reply With Quote
  #17  
Old 11-07-2008, 02:18 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Inverness View Post
I expected better from you guys.
Uhm..?
__________________
Reply With Quote
  #18  
Old 11-07-2008, 04:37 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by xXziroXx View Post
Hell Raven's time system does what's being asked in this thread perfectly.
Hell Raven's time system is also the most confusing piece of code I've ever seen on Graal. Granted the time I tried to use it, I was just beginning to script. But, the last time I checked, HR's time system doesn't provide a single function for displaying a timestamp.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #19  
Old 11-07-2008, 05:53 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by LoneAngelIbesu View Post
Hell Raven's time system is also the most confusing piece of code I've ever seen on Graal. Granted the time I tried to use it, I was just beginning to script. But, the last time I checked, HR's time system doesn't provide a single function for displaying a timestamp.
It's not rocket science to make a function for it yourself using HR's code as source.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #20  
Old 11-07-2008, 05:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by LoneAngelIbesu View Post
Hell Raven's time system is also the most confusing piece of code I've ever seen on Graal. Granted the time I tried to use it, I was just beginning to script. But, the last time I checked, HR's time system doesn't provide a single function for displaying a timestamp.
Uhm? In the first example HR used in that thread it shows you how to get a date/timestamp :o
__________________
Reply With Quote
  #21  
Old 11-07-2008, 06:21 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Chompy View Post
Uhm? In the first example HR used in that thread it shows you how to get a date/timestamp :o
Not using a single function, it doesn't.
Quote:
Originally Posted by xXziroXx View Post
It's not rocket science to make a function for it yourself using HR's code as source.
PHP Code:
function hellRavenFormalTime() {
  
temp.ctime adjustTimeZone(timevar2,-5); // to EST
  
temp.date getDate(temp.ctime);
  
temp.clock = {getHour(temp.ctime),getMinutes(temp.ctime),getSeconds(temp.ctime)};
  return 
getFormalDayEnglish(getWeekday(temp.ctime)) @ ", " @
         
getFormalMonthEnglish(temp.date[1]) SPC getFormalNumber(temp.date[2]) @ ", " temp.date[0] @ " @ " @
         
to12Hour(temp.clock[0]) @ ":" doubleDigit(temp.clock[1]) @ ":" doubleDigit(temp.clock[2]) SPC getAMPM(temp.clock[0]) SPC "EST";

PHP Code:
function timestamp() {
  return 
shared.date("l, F jS, @ g:i:s a T");

Which one do you think somebody new to GS2 would be able to use more easily? You guys seem to think that every scripter on Graal is an expert.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #22  
Old 11-07-2008, 06:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by LoneAngelIbesu View Post
Not using a single function, it doesn't.

PHP Code:
function hellRavenFormalTime() {
  
temp.ctime adjustTimeZone(timevar2,-5); // to EST
  
temp.date getDate(temp.ctime);
  
temp.clock = {getHour(temp.ctime),getMinutes(temp.ctime),getSeconds(temp.ctime)};
  return 
getFormalDayEnglish(getWeekday(temp.ctime)) @ ", " @
         
getFormalMonthEnglish(temp.date[1]) SPC getFormalNumber(temp.date[2]) @ ", " temp.date[0] @ " @ " @
         
to12Hour(temp.clock[0]) @ ":" doubleDigit(temp.clock[1]) @ ":" doubleDigit(temp.clock[2]) SPC getAMPM(temp.clock[0]) SPC "EST";

PHP Code:
function timestamp() {
  return 
shared.date("l, F jS, @ g:i:s a T");

Which one do you think somebody new to GS2 would be able to use more easily? You guys seem to think that every scripter on Graal is an expert.

PHP Code:
public function getTimeStamp(timezone) {
  
temp.ctime adjustTimeZone(timevar2timezone);
  
temp.date getDate(temp.ctime);
  
temp.clock = {getHour(temp.ctime),getMinutes(temp.ctime),getSeconds(temp.ctime)};
  return 
getFormalDayEnglish(getWeekday(temp.ctime)) @ ", " @
         
getFormalMonthEnglish(temp.date[1]) SPC getFormalNumber(temp.date[2]) @ ", " temp.date[0] @ " @ " @
         
to12Hour(temp.clock[0]) @ ":" doubleDigit(temp.clock[1]) @ ":" doubleDigit(temp.clock[2]) SPC getAMPM(temp.clock[0]) SPC "EST";

and then you could do

PHP Code:
this.join("functions_time"// or whatever you named the class where the function is
function onCreated() {
  
sendtorc(getTimeStamp(1));
  
sendtorc(getTimeStamp(-5));

  
// getTimeStamp(timezone)

I don't see any problem using HR's.. All you would have to do is make it so the function returns the proper timezone.. which shouldn't be a problem at all..
__________________
Reply With Quote
  #23  
Old 11-07-2008, 10:17 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by LoneAngelIbesu View Post
Not using a single function, it doesn't.

PHP Code:
function hellRavenFormalTime() {
  
temp.ctime adjustTimeZone(timevar2,-5); // to EST
  
temp.date getDate(temp.ctime);
  
temp.clock = {getHour(temp.ctime),getMinutes(temp.ctime),getSeconds(temp.ctime)};
  return 
getFormalDayEnglish(getWeekday(temp.ctime)) @ ", " @
         
getFormalMonthEnglish(temp.date[1]) SPC getFormalNumber(temp.date[2]) @ ", " temp.date[0] @ " @ " @
         
to12Hour(temp.clock[0]) @ ":" doubleDigit(temp.clock[1]) @ ":" doubleDigit(temp.clock[2]) SPC getAMPM(temp.clock[0]) SPC "EST";

PHP Code:
function timestamp() {
  return 
shared.date("l, F jS, @ g:i:s a T");

Which one do you think somebody new to GS2 would be able to use more easily? You guys seem to think that every scripter on Graal is an expert.
Don't insult other people's intelligence.

Date functions like that are rather language independent and if a proper explanation is provided it could easily be figured out by someone knew to scripting, provided they understand the basics. Obviously there would also be one or two default timestamp formats also.
__________________
Reply With Quote
  #24  
Old 11-07-2008, 11:23 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
You guys don't understand what I'm saying at all. I know that it can be done with HR's script. What I'm telling you is that HR's script isn't beginner-friendly. Look at how many functions you have to do just to get a single format: 12. How many lines of code would you need to recreate the amount of combinations PHP's date() function has? It'd be much simpler to just provide a single function that can support myriad formats.

I guess I have a new side-project.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #25  
Old 11-07-2008, 11:59 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Dylan, or whatever you name is, your code is unnecessary and not very flexible. You might want to get some more programming experience before saying how inefficient a code is.

The modifications I made to HR's system provide easy timestamp access for all client- and serverside scripts. I simply have the script setting all local variables as serverr strings, then have a getTimeStamp() function in a class (identical ones both on client- and serverside, script replication is evil ) that any script can use by simply reading the time from the serverr variables.
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 11-08-2008 at 01:27 AM.. Reason: I was being too mean in my original version, gomenasai.
Reply With Quote
  #26  
Old 11-08-2008, 12:06 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by xXziroXx View Post
Dylan, or whatever you name is, your code is unnecessary and not very flexible. You might want to get some more programming experience before saying how inefficient a code is.
Half the things scripted on Graal are unnecessary, but that never stops anybody. But, please explain to me how a date function that mimics PHP's date() function wouldn't be flexible?
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #27  
Old 11-08-2008, 12:31 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by LoneAngelIbesu View Post
But, please explain to me how a date function that mimics PHP's date() function wouldn't be flexible?
Dylan, I believe he is referring to your function hellRavenFormalTime().

And yes, Ziro, his name is Dylan.
__________________
Reply With Quote
  #28  
Old 11-08-2008, 01:06 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Inverness View Post
Dylan, I believe he is referring to your function hellRavenFormalTime().

And yes, Ziro, his name is Dylan.
Oh, well, in that case... that's the example given for creating a timestamp with HR's script. I agree that it's inflexible.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #29  
Old 11-08-2008, 09:09 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Why don't you use HR's functions to mimic date()? It's not like PHP's date() is some fancy 2 line code which magically returns whatever you want, goddamnit.
Reply With Quote
  #30  
Old 11-08-2008, 09:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Thing is, I think this should have been something done way before HellRavens function pack for it was made. It's pretty common and important for keeping track of the time for various things.

I'm not saying this should be done, but I don't know why it wasn't done before. It seems like it would have had many practical uses.
Reply With Quote
  #31  
Old 11-08-2008, 11:20 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
When I try using HR's functions on the clientside with the proper timevar2 from the server it doesn't work correctly, I think it has something to do with how the calculation is being done.
__________________
Reply With Quote
  #32  
Old 11-08-2008, 03:34 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
When I try using HR's functions on the clientside with the proper timevar2 from the server it doesn't work correctly, I think it has something to do with how the calculation is being done.
Just read them from serverr variables?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #33  
Old 11-08-2008, 08:58 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Crow View Post
Why don't you use HR's functions to mimic date()? It's not like PHP's date() is some fancy 2 line code which magically returns whatever you want, goddamnit.
Um.. in case you didn't read between the lines, that's pretty much the plan. Use his functions as a base to create a more flexible, easier-to-use, single function for timestamps.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.