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 


Datetime time-value
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Apr 10, 2003 2:40 pm    Post subject: Datetime time-value Reply with quote

Hi,

I am trying this since month and never know how to use it.

Can somebody tell me how to use the optional timevalue
for @datetime() ?
Maybe I have a date and want to get the weekday (eg Monday)
for this. How can I do it ?

Thanks Very Happy

bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Thu Apr 10, 2003 2:57 pm    Post subject: Reply with quote

Use the second parameter of @datetime(), like this:

Code:
%%time = @datetime(dd-mm-yy)

info %%time was on a @datetime(dddd,%%time)

_________________
[ 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
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Apr 10, 2003 3:02 pm    Post subject: datetiem Reply with quote

Hi,

does not work on my computer.
I am using german OS.

Do I have to change the style for %%time = @datetime(...) ?

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Thu Apr 10, 2003 3:11 pm    Post subject: Reply with quote

Well, I have got a Dutch computer, and I think that the time notation is the same. Maybe you have to change dd-mm-yy so that it is notated in the way it is in Germany...
_________________
[ 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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Apr 10, 2003 7:06 pm    Post subject: Reply with quote

I tested it on an English computer and you will need to remove the hyphens (-)

And probably set the date in the correct format as it is used in the country.
For example, in America, if the date was Wednesday, April 10, 2003, we
would need to use 041003. Smile

Code:
REM This will work, just don't use hyphens and use the correct date format
%%time = 041003
info %%time was on a @datetime(dddd,%%time)

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Apr 11, 2003 12:45 pm    Post subject: datetime Reply with quote

do you know how to do this with a time value ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Fri Apr 11, 2003 2:58 pm    Post subject: Reply with quote

Just move you mouse above the Windows Clock to see how it is officialy notated in your country...
_________________
[ 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
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Apr 11, 2003 10:28 pm    Post subject: Reply with quote

why not just use

Code:
%%dummy = @datetime()
info @datetime(dddd,%%dummy)


then you don't have to worry about international settings...

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat Apr 12, 2003 8:13 am    Post subject: datetime Reply with quote

Hi Serge,

you misunderstood.
I need a specific date, not today.

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sat Apr 12, 2003 10:19 am    Post subject: Reply with quote

Maybe you can run this, and put reply it in a topic?

Code:

clipboard set,@datetime()


That way we can see how the time is set over there... Wink

_________________
[ 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
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat Apr 12, 2003 10:46 am    Post subject: datetime Reply with quote

37723,5323897685
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sat Apr 12, 2003 11:46 am    Post subject: Reply with quote

This way it should work...

Code:
option decimalsep,@chr(44)

%%Timevalue = "37723,5323897685"
info @datetime(dddd,%%Timevalue)

_________________
[ 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
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat Apr 12, 2003 12:00 pm    Post subject: datetime Reply with quote

yes - i know.

what i ment is to know, what day of week
was the first january 2000, etc.

and calculating with dates and times.

for the moment i use calculating in seconds for timecalculations
(minutes x 60, hours x 3600, etc).

But how could I substract 30 days from a date ?

Is there a way in vds ?

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sat Apr 12, 2003 1:26 pm    Post subject: Reply with quote

Why didn't you say? Wink

Code:
rem       dd-mm-yyyy
%%date = "01-01-2000"
info @datetime(dddd,%%date)

_________________
[ 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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 12, 2003 2:13 pm    Post subject: Reply with quote

Skit, I don't think you can use hyphens in it. If I removed them, it worked,
but with them I get a Missing parameter(s) to command error.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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