| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Apr 10, 2003 2:40 pm Post subject: Datetime time-value |
|
|
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
bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Apr 10, 2003 3:02 pm Post subject: datetiem |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 10, 2003 7:06 pm Post subject: |
|
|
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.
| 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 |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Apr 11, 2003 12:45 pm Post subject: datetime |
|
|
| do you know how to do this with a time value ? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Apr 11, 2003 10:28 pm Post subject: |
|
|
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 |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Apr 12, 2003 8:13 am Post subject: datetime |
|
|
Hi Serge,
you misunderstood.
I need a specific date, not today.
Bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Apr 12, 2003 10:46 am Post subject: datetime |
|
|
| 37723,5323897685 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Apr 12, 2003 12:00 pm Post subject: datetime |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 12, 2003 2:13 pm Post subject: |
|
|
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 |
|
 |
|