Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
#17679 - 09/26/02 02:51 PM
Time
|
Junior Member
Registered: 03/19/02
Posts: 9
Loc: Ontario,Canada
|
I am building a chat program and I would like to have the time. That the message was sent to appear with the message. Or have the current time appear in the top of the chat window. Any help would be great.
_________________________
Beer, Helping ugly people get laid since 1862.
|
|
Top
|
|
|
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
|
#17680 - 09/26/02 07:19 PM
Re: Time
|
Member
Registered: 03/01/02
Posts: 197
Loc: Belgium
|
a little example of code, you'll understand it right away (very easy) dim strTimeRightNow as string 'bleh not important for this one
strTimeRightNow = time 'the variable will contain the time for that moment, it's the same with date and who knows what other ones there are :)
_________________________
Never argue with fools... They will only drag you down to their level, and beat you with experience...
|
|
Top
|
|
|
|
#17681 - 09/28/02 06:51 PM
Re: Time
|
UGN's Resident Homo
Registered: 03/16/02
Posts: 599
Loc: TN
|
when i want a clock i found it works well to put a timer on the page and set the interval at one second, then make the code for the interval as follows: that makes the text1 display the current time every time the timer counts up one which is every second. thus you get a clock. also if you use DateTime.Date you can display the date. and these can also be used to change the computers date and time settings.
_________________________
"It's better to burn out, than to fade away."
|
|
Top
|
|
|
|
#17683 - 09/30/02 01:34 AM
Re: Time
|
UGN's Resident Homo
Registered: 03/16/02
Posts: 599
Loc: TN
|
humm, i didn't know that, saves me some typing next time. thanks
_________________________
"It's better to burn out, than to fade away."
|
|
Top
|
|
|
|
#17684 - 09/30/02 01:39 AM
Re: Time
|
UGN's Resident Homo
Registered: 03/16/02
Posts: 599
Loc: TN
|
also, i shouldn't say this without trying it first to make sure i got it right, but i think you can do format(date, "dd mm yy") or something like that, and there is probably one like that for time as well. ask neo, i think he knows it...
_________________________
"It's better to burn out, than to fade away."
|
|
Top
|
|
|
|
|
Registered: 03/01/02
Posts: 505
|
|
2198 Members
46 Forums
24780 Topics
59950 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
1 registered (Gremelin),
323
Guests and
232
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|