Page 4 of 4
Re: Get real date from the Internet
Posted: Sat Jan 07, 2023 9:24 am
by Horizon
Thank you Antonio.
Re: Get real date from the Internet
Posted: Tue Oct 17, 2023 12:50 pm
by RAMESHBABU
Dear Antonio,
Now() function is giving a wrong date as under:
Current time: Wed Oct 18 18:19:14 2023
Please help.
-Ramesh Babu
Re: Get real date from the Internet
Posted: Tue Oct 17, 2023 1:48 pm
by Antonio Linares
Dear Ramesh,
Here it is working fine
Lets check it with Mr. Rao
Re: Get real date from the Internet
Posted: Tue Oct 17, 2023 6:32 pm
by nageswaragunupudi
Working perfectly for me too here:
This is my code:
Code: Select all | Expand
? "NOW()=", Now(), "HB_DATETIME()=", ;
HB_DateTime(), ;
"Current time: " + FW_Transform( HB_DateTime(), "ddd mmm dd hh:mm:ss yyyy" )
Result:
Note:
If you are using xHarbour, use DateTime() instead of HB_DateTime()
Re: Get real date from the Internet
Posted: Wed Oct 18, 2023 1:40 am
by RAMESHBABU
Hi Nageswara Rao gaaru/Antonio,
I am getting the wrong internet date, when the system date is wrongly changed to
a date, other than actual date.
Thank you for your attention
-Ramesh Babu P
Re: Get real date from the Internet
Posted: Wed Oct 18, 2023 9:55 am
by Antonio Linares
Dear Ramesh,
Are you using xHarbour ? What C compiler are you using ?
Re: Get real date from the Internet
Posted: Thu Oct 19, 2023 12:19 am
by RAMESHBABU
Dear Antonio,
Are you using xHarbour ? What C compiler are you using ?
xHarbour 1.2.3 Intl. (SimpLex) (Build 20201212)
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Thank you,
-Ramesh Babu P
Re: Get real date from the Internet
Posted: Thu Oct 19, 2023 7:36 am
by Enrico Maria Giordano
Ramesh,
why are you using such an old version of xHarbour? Please download the latest build of xHarbour from here:
http://xharbour.org/index.asp?page=down ... naries_win
And the latest BCC from here:
http://xharbour.org/index.asp?page=down ... quired_win
Re: Get real date from the Internet
Posted: Thu Oct 19, 2023 10:56 am
by Antonio Linares
Dear Ramesh,
I am getting the wrong internet date, when the system date is wrongly changed to
a date, other than actual date.
The wrong date that you get is the same as the wrongly changed date ?
What Windows version are you using ?
Re: Get real date from the Internet
Posted: Fri Oct 20, 2023 2:14 am
by RAMESHBABU
Dear Antonio,
>> The wrong date that you get is the same as the wrongly changed date ?
Yes.
>> What Windows version are you using ?
Windows 7 Ultimate (Service Pack 1)
Thank you,
-Ramesh Babu P
Re: Get real date from the Internet
Posted: Mon Oct 23, 2023 2:37 am
by RAMESHBABU
Dear Enrico,
I have upgraded my xHarbour and BCC versions.
Thank your very much for your advise.
-Ramesh Babu P