|
-
Nov 26th, 2008, 01:02 AM
#1
Thread Starter
Hyperactive Member
Real Time Date
How can I get the real date and time for my program so that it is always synchronized with the real time and date in our country? (Philippines)
Of course the system date may be used but I thought not all PC that my program will be installed will have a healthy CMOS battery and not all PC will have the exact date and time.
THANK YOU!
-
Nov 26th, 2008, 01:34 AM
#2
Re: Real Time Date
if the computers can connect to the internet, you could use the atomic clock.
There are several examples at PSC
http://www.planet-source-code.com/vb...a=atomic+clock
-
Nov 26th, 2008, 06:09 AM
#3
Re: Real Time Date
I would suggest this simple easy to understand example....
http://www.thescarms.com/vbasic/syncclock.aspx
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Nov 27th, 2008, 05:26 AM
#4
Thread Starter
Hyperactive Member
-
Nov 27th, 2008, 05:28 AM
#5
Thread Starter
Hyperactive Member
Re: Real Time Date
But is there any way to synchronize/set my clock to the real time clock without accessing the net???
-
Nov 27th, 2008, 06:05 AM
#6
Member
Re: Real Time Date
use this code for exemple with a label:
label1.caption = time
enjoy
-
Nov 27th, 2008, 06:08 AM
#7
Re: Real Time Date
 Originally Posted by doctrin13th
But is there any way to synchronize/set my clock to the real time clock without accessing the net???
NO..
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|