Search found 379 matches: datetime

Return to advanced search

New FTDN April 2024 (FWH 24.04)

... ) // one existing record oStatesRec:Edit() // modify and save the existing record - Methods CreateTable() and ImportFromDBF() used to create DateTime and TimeStamp fields without support for fraction of seconds. Now support fraction of seconds milliseconds. - Improved support for Restoring ...
by Antonio Linares
Wed Apr 24, 2024 7:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 0
Views: 45

Re: DateTime calculation

Dear Antonio,

thank you very much...this is wonderful!!!
it is running now :-)

have a nice weekend and kind regards
ruth
by Ruth
Sat Jan 27, 2024 9:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: DateTime calculation

Dear Ruth, good morning I just copied and pasted your post into chatgpt and the answer seems fine :-) (not exactly correct, but the explanation seems fine) Yes, it looks like the timestamp you provided is in milliseconds since the Unix epoch. To convert a Harbour date variable into a Unix timestamp ...
by Antonio Linares
Sat Jan 27, 2024 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: DateTime calculation

dear all, I would also like to kindly ask assistance with date and time handling. specifically: is it possible to convert a harbour date variable into a "unix timestamp expressed in milliseconds" (hope this is the correct term)? I am working on a project where I need to pass arrival and de...
by Ruth
Sat Jan 27, 2024 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: DateTime calculation

Hi Rao, thank you. I had found it in xHarbour documentation
by cdmmaui
Fri Jan 26, 2024 9:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: DateTime calculation

Code: Select all  Expand view
DateTime() - ( 10 / ( 24 * 60 ) )
by nageswaragunupudi
Fri Jan 26, 2024 9:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: DateTime calculation

I figured it out.
by cdmmaui
Fri Jan 26, 2024 1:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

DateTime calculation

Hello,

Is it possible to perform a DateTime calculation to get current time minus 10 minutes? For example

cTenMinutesBefore := DateTime() - 10

Thank you!
by cdmmaui
Thu Jan 25, 2024 11:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 694

Re: Get real date from the Internet

Working perfectly for me too here: This is my code:    ? "NOW()=", Now(), "HB_DATETIME()=", ;      HB_DateTime(), ;     "Current time: " + FW_Transform( HB_DateTime(), "ddd mmm dd hh:mm:ss yyyy" ) Result: https://imagizer.imageshack.com/v2/xq70/923/4qyZqS.png ...
by nageswaragunupudi
Tue Oct 17, 2023 6:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get real date from the Internet
Replies: 55
Views: 4470

Re: DBF to Excel Sheet, without Excel, using ADO ?

... "fldint", "fldtext", "fldbool", "fldDate" }, ;               { 99, "FiveWin", .t., hb_DateTime() } )   oRs:MoveFirst()   aTypes   := {}   for n := 0 to oRs:Fields:Count - 1      WITH OBJECT oRs:Fields( ...
by nageswaragunupudi
Wed Aug 16, 2023 10:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: DBF to Excel Sheet, without Excel, using ADO ?

... b) Whatever numeric datatype, like int, numeric(w,d), etc we specify the columns are finally double only. c) Date fields accept both dates and datetime values. d) Use field type "TEXT" for memo fields. To have better control of column formatting we need to create Excel Sheets using ...
by nageswaragunupudi
Mon Aug 14, 2023 10:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: DBF to Excel Sheet, without Excel, using ADO ?

... [testdt] ( [NAME]     VARCHAR(20), [JGDATE]   DATE, [TSTAMP]   DATETIME )ENDTEXT   oCn:Execute( cSql )   oRs   :=  FW_OpenRecordSet( oCn, "select * from [testdt]" ...
by nageswaragunupudi
Sun Aug 13, 2023 10:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: DBF to Excel Sheet, without Excel, using ADO ?

hi,

sorry, i mean Structure of Excel Sheet create by ADO

it did accept DATETIME in Structure for a Excel Sheet, but when XBROWSE / EDIT it fail
i have to change back to DATE to make it work again
by Jimmy
Sun Aug 13, 2023 4:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: DBF to Excel Sheet, without Excel, using ADO ?

hi, have found out that TDataRow():New() does not like Type DATETIME, only DATE Is it? Test: #include "fivewin.ch"function Main()   DBCREATE( "testx.dbf", { ;      { "ID", "+", 4, 0 }, ...
by nageswaragunupudi
Sat Aug 12, 2023 11:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: DBF to Excel Sheet, without Excel, using ADO ?

hi,

have found out that TDataRow():New() does not like Type DATETIME, only DATE
by Jimmy
Sat Aug 12, 2023 3:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584
Next

Return to advanced search