Search found 322 matches: calculation

Return to advanced search

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

Calculate total pages

... be very simple what do I know I imagine PRINT oPrn NAME "My Print" CALCULATE I execute two times the same function the firs is only for calculation the second really prints have a nice day
by MarcoBoschi
Wed Nov 22, 2023 5:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

Interesting discussion with ChtGPT

... Here are some thoughts on that: Best regards, Otto ********************************** Certainly, here's the translation: Can you make this calculation in harbour/clipper for me? ChatGPT: Yes, of course! Harbour/Clipper has a slightly different syntax than modern programming languages like ...
by Otto
Mon Nov 06, 2023 4:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Interesting discussion with ChtGPT
Replies: 15
Views: 1244

Re: FIVEWIN power - a room planer video

... a room only in the morning or only in the afternoon because generally in hotels the reservation goes from the day to the next day so generally the calculation is done for nights of overnight stay. In my case, however, since it is an hourly hotel (motel), the overnight stay takes place in the morning ...
by Silvio.Falconi
Thu Sep 21, 2023 12:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FIVEWIN power - a room planer video
Replies: 50
Views: 11098

Re: Assigning lUseHaruPdf when TPrinter is sub-classed

Unfortunately when it's printing in a loop (a bunch of staffs tax calculation), it will eventually generates internal error

After how many times in the loop?
by nageswaragunupudi
Thu Aug 03, 2023 7:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Assigning lUseHaruPdf when TPrinter is sub-classed
Replies: 18
Views: 894

Re: Assigning lUseHaruPdf when TPrinter is sub-classed

Thanks for the info Rao. The dialog now no longer appears Unfortunately when it's printing in a loop (a bunch of staffs tax calculation), it will eventually generates internal error * hb_out.logApplication Internal Error - F:\test\harbour\pay2023_\bin\pay.exeTerminated at: 2023-08-02 ...
by hua
Thu Aug 03, 2023 2:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Assigning lUseHaruPdf when TPrinter is sub-classed
Replies: 18
Views: 894

Re: FW_SetUnicode( .T. ) 2-Byte characters

something else I noticed: During editing it sometimes happens that the following 2-byte characters are interpreted CORRECTLY.
So the error should be related to the length calculation of the previous characters, somewhere deep inside.
HTH
by frose
Fri Jun 23, 2023 9:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SetUnicode( .T. ) 2-Byte characters
Replies: 25
Views: 2194

Re: none PIXEL calculation

correct! :-)
by Antonio Linares
Fri Apr 14, 2023 11:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: none PIXEL calculation
Replies: 6
Views: 318

Re: none PIXEL calculation

hi Antonio,
Antonio Linares wrote:FWH\include\constant.ch

ok, now understand

it depend on Control which *_CHARPIX_H and *_CHARPIX_W to use

Code: Select all  Expand view
// Say
#define SAY_CHARPIX_H   15
#define SAY_CHARPIX_W    6


so
Code: Select all  Expand view
@ 1, 2 SAY

are
Code: Select all  Expand view
@ 1*SAY_CHARPIX_W, 2*SAY_CHARPIX_H SAY ... PIXEL

right :?:
by Jimmy
Fri Apr 14, 2023 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: none PIXEL calculation
Replies: 6
Views: 318
Next

Return to advanced search