mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#36952 19/07/03 02:51 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i had to read an 800+ page on the current http protocol to understand GET HEAD POST. but i can use them with ease now(cept connecting to irc)
if you dont have the time, you dont learn it, simple.

Last edited by pheonix; 19/07/03 02:53 PM.

new username: tidy_trax
#36953 19/07/03 03:00 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
How do you know the answer to your question is short? If you know that, then you should also know the answer. You have NO idea how long or short the answer is, and in fact it is not all that easy to explain. If you don't want to take the time to read the explanation, then why should I go, read it for you, and then summarize it? Why should I have to do more work because you don't want to?

#36954 19/07/03 05:01 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
can anyone HELP me ?



#36955 19/07/03 05:02 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
codemastr and pasmal helped you.


new username: tidy_trax
#36956 19/07/03 07:51 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
This is exactly the reason you were banned from #mIRC.

Take some initiative and LEARN from the resources provided to you. Don't expect everything to be dictated for you.

If you must, write a script that reads a webpage for you in a custom @window, and randomly insert people's nicks before each paragraph to make it APPEAR as if we're typing it to you.

(I wrote a nifty WPM delay algorithm that calculates how many seconds it should take to type a line, given the typist's average WPM. I'll even share it with you if need be.)

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#36957 19/07/03 10:28 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It's odd that this hasn't been mentioned directly by anyone, but what you must understand is that $ctime returns the same value for everyone (if you ignore the difference of a couple of minutes due to inaccurate setting of time on each system). It has no choice but being the same for everybody, since, as you correctly thought, it's the number of seconds elapsed from a certain moment. What differs among people in different countries is $asctime($ctime) but only because it is designed to return the current date/time taking into account your timezone. What is different among users is also $gmt (NOT $gmt()), which is designed in a way that, when fed in $asctime(), returns the current time in Greenwich (GMT). So $gmt actually "makes up" for the difference in the $asctime() of each user. $gmt is equivalent to $calc($ctime + $timezone). In short, $asctime(), $gmt and $timezone vary among users, but $ctime doesn't. I hope it's clearer now.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#36958 20/07/03 08:11 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Quote:
$ctime returns the same value for everyone


I thought that at first, too. But then I changed my Time Zone from +12(NZ) to +9:30 (Darwin) and called (within the space of 3-4 seconds of each other) //echo -a $asctime($ctime) from $ctime and got:

Sun Jul 20 20:09:55 2003 from 1058688595
Sun Jul 20 17:40:06 2003 from 1058679606

The difference in ctime values is clearly visible.

Help file description: "Returns total number of seconds elapsed since 00:00:00 GMT, January 1, 1970 based on your system time"

#36959 20/07/03 11:07 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
This is happening for a different reason. Here are some results from //echo -s $asctime($ctime) - $ctime with various timezone settings:
Sun Jul 20 13:51:34 2003 - 1058698294
Sun Jul 20 06:51:54 2003 - 1058698314
Sun Jul 20 16:52:15 2003 - 1058698335
even though $asctime() returns very different dates, $ctime is the same (with a difference of few secs). I guess the difference in $ctime you noticed is because of Daylight Saving Time. If the option "Automatically adjust clock for DST changes" is disabled, I get different values for certain timezones. I didn't check it thoroughly enough, but it seems that countries with timezone offsets that are not integer multiples of an hour make the system return a different $ctime when the option is disabled. In any case, this difference is most of the times 2.5 hours, which is irrevelevant to the actual timezone offset of that country (it can coincide, but has nothing to do with it).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#36960 20/07/03 11:35 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
ok, i think i understand it now
thx

#36961 21/07/03 07:06 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Ah yes it was the DST that confused me, cheers.

Page 2 of 2 1 2

Link Copied to Clipboard