forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Datesep

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Knowledge Base
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Apr 12, 2003 3:17 pm    Post subject: Datesep Reply with quote

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
View user's profile Send private message
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Sat Apr 12, 2003 4:39 pm    Post subject: Reply with quote

You can get the date seperator using @datetime(/) and the time seperator using @datetime(:)


-Mark
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Knowledge Base All times are GMT
Page 1 of 1

 
Jump to:  
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




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group