Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting UTC time
Message
 
To
09/01/2006 09:52:44
Viman Nagar
Zensar Technologies
Pune, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01084691
Message ID:
01084839
Views:
36
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
Previous
Reply
Map
View

Click here to load this message in the networking platform