View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Apr 12, 2003 3:17 pm Post subject: Datesep |
|
|
There already is something like the fieldsep, and something like decimalsep, but how about differents in time/date notation? You can use this little subroutine for it, to get the 'Datesep'...
Code: |
Gosub Datesep
info The datesep is %%Datesep
Gosub Timesep
info The timesep is %%Timesep
exit
:Datesep
runh "CMD /C date /T >c:\date.txt",wait
list create,9
list loadfile,9,c:\date.txt
%%Datesep = @substr(@text(9),@diff(@len(@text(9)),7),@diff(@len(@text(9)),7))
list close,9
exit
:Timesep
runh "CMD /C time /T >c:\time.txt",wait
list create,9
list loadfile,9,c:\time.txt
%%Timesep = @substr(@text(9),3,3)
list close,9
exit |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
LOBO Valued Contributor
Joined: 14 Mar 2002 Posts: 241 Location: Wilmington, Delaware, USA
|
Posted: Sat Apr 12, 2003 4:39 pm Post subject: |
|
|
You can get the date seperator using @datetime(/) and the time seperator using @datetime(:)
-Mark |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|