Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting UTC time
Message
 
À
09/01/2006 09:52:44
Viman Nagar
Zensar Technologies
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
01084691
Message ID:
01084839
Vues:
37
lcComputer = "."
loWMIService = Getobject("winmgmts:\\" + lcComputer + "\root\cimv2")
colItems = loWMIService.ExecQuery("Select * from Win32_UTCTime")
For Each loItem In colItems
	?"Day: " + Transf(loItem.Day)
	?"Day Of the Week: " + Transf(loItem.Dayofweek)
	?"Hour: " + Transf(loItem.Hour)
	?"Milliseconds: " + Transf(loItem.Milliseconds)
	?"Minute: " + Transf(loItem.Minute)
	?"Month: " + Transf(loItem.Month)
	?"Quarter: " + Transf(loItem.Quarter)
	?"Second: " + Transf(loItem.Second)
	?"Week In the Month: " + Transf(loItem.WeekInMonth)
	?"Year: " + Transf(loItem.Year)
Next
>Hi,
>
>Does anyone know how we can get the GMT time?
>
>Regards,
>Zensar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform