| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Fri Feb 01, 2008 6:50 am Post subject: @SYSINFO(WINBOOT) without AM |
|
|
| Code: | %%WinBoot = @SYSINFO(WINBOOT)
%%PowerOn = @datetime(m:dd:hh:nn:ss,%%WinBoot)
|
This code dont work...
VDS help say that @SYSINFO(WINBOOT) can be formated with datetime
VDS6 only ??? |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sat Feb 02, 2008 4:42 am Post subject: |
|
|
Hi Filip,
Actually, it does... It's just not as you expected...
%%WinBoot = @SYSINFO(WINBOOT) returns a floating point number in which the integer portion represents the number of whole days since boot up... The fractional portion represents the amount of hours, minutes & seconds beyond any whole days elapsed. This can be displayed with
@datetime(hh:nn:ss,%%winboot).
But the day count can only be represented with something like
@fint(%%winboot)
If you do @datetime(mm:dd:yyyy,0.0) it would return "12:30:1899"
I hope this clarifies it for you...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sat Feb 02, 2008 9:14 am Post subject: |
|
|
@SYSINFO(WINBOOT) for non english keybord its just fine
but if used on US or whatever i get AM at the end...  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sat Feb 02, 2008 3:03 pm Post subject: |
|
|
I use a US keyboard, and I don't see "AM" added on the end when I set the formatting as you showed it... How do you have the formatting set up?
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sat Feb 02, 2008 3:58 pm Post subject: |
|
|
| Sysinfo(winbot),,, |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sun Feb 03, 2008 1:41 am Post subject: |
|
|
Filip,
I think what is confusing is the fact that the @SysInfo(WinBoot) will only return the Time info if your PC has not been up longer than a day. There for @datetime might not be interpreting your request. My PC has not been up for more than a day and since there is a 0 on the left side of the decimal place it is showing 12:30 for the m:dd in your pattern. It is showing the hh:nn:ss properly without the AM or PM at the end. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|