At the moment the time2text() proc would say something like;
Fri May 09 17:19:59 2008.
How would I go around making the time2text() proc only show:
- Hour and minute, AM/PM
- Day, month, and year (Example: 09 May 2008)
- Day, month, year, Hour, Minute, AM/PM
Example:
- (Hour:Minute AM/PM) Howey says: bla
- Howey has logged in. (09 May 2008)(Hour:Minute AM/PM)
- Howey has logged out. (10 May 2008)(Hour:Minute AM/PM)
The actual times will need to be in GMT format, which I think is default as GMT timezone.
ID:161415
![]() May 9 2008, 6:25 am
|
|
Loduwijk wrote:
Howey wrote: Yea, but where do I put them? mob/verb I tried doing it like that and got: verbs.dm:32:error:hh/:/mm:undefined var |
Howey wrote:
I tried doing it like that and got: Sorry but, of course it wouldn't work like that; look the time2text() proc up again and see what the reference says about that 2nd argument, what should it be. You might have not made this error if you haven't called the proc in an embedded expression, because there is no syntax highlighting there (although the indicative here is the lack of highlighting), so that might have caused you to make a syntax error. So perhaps you'll want to try it outside the embedded expression first. var/value = whatever_proc(x,y,z,10) |
Look up the parameters to time2text(), it is the second format you want.
"hh:mm" will give you "12:30" type of time format.
"DD MMM YYYY"