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 


@SYSINFO(WINBOOT) without AM

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Fri Feb 01, 2008 6:50 am    Post subject: @SYSINFO(WINBOOT) without AM Reply with quote

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
View user's profile Send private message Send e-mail
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sat Feb 02, 2008 4:42 am    Post subject: Reply with quote

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


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sat Feb 02, 2008 9:14 am    Post subject: Reply with quote

@SYSINFO(WINBOOT) for non english keybord its just fine

but if used on US or whatever i get AM at the end... Sad
Back to top
View user's profile Send private message Send e-mail
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sat Feb 02, 2008 3:03 pm    Post subject: Reply with quote

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


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sat Feb 02, 2008 3:58 pm    Post subject: Reply with quote

Sysinfo(winbot),,,
Back to top
View user's profile Send private message Send e-mail
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun Feb 03, 2008 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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