Afficher un message
Vieux 24/09/2007, 21h06   #3
urkec
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Getting eventlogs in last 24 hours

"Oliver Marshall" wrote:

> That would give logs between yesterday morning and now. So if the check
> happened at 8pm today, it would return anything from yesterday at 00:01 to
> today which is more than 24 hours
>
> Thanks anyway
>


I tested this:

Set dtmStartDate = CreateObject ("WbemScripting.SWbemDateTime")
DateToCheck = Now
dtmStartDate.SetVarDate DateToCheck - 1, True
WScript.Echo dtmStartDate

It gave me 20070923220056.000000+120 , which is about 24 hours from now (CET).


--
urkec
  Réponse avec citation
 
Page generated in 0,05712 seconds with 9 queries