Search found 1684 matches: convert

Return to advanced search

AYUDA Validacion LRC para datafono

... As Integer = 0 'Este valor lo reemplazé por 2 y todo salió de maravillas. For Each c As Char In GetStringFromHex(s) checksum = checksum Xor Convert.ToByte(c) Nextini Return checksum.ToString("X2") End Function Private Function GetStringFromHex(ByVal s As String) As String Dim result ...
by russimicro
Sat Mar 30, 2024 6:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: AYUDA Validacion LRC para datafono
Replies: 2
Views: 469

Re: creating a new function HtmlToRtf()

... fine. https://github.com/jgm/pandoc/releases/tag/3.1.12 what...? I do not understand ? my HTMLTORTF function takes the generated cstring and converts it to rtf I don't know how to convert the tag for tables and links cTemp := StrTran(cTemp, "<table border='1'>", "\pard\intbl\itap0\plain\ltrpar{\trowd\trgaph70\trleft-70")  ...
by Silvio.Falconi
Fri Feb 16, 2024 11:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: creating a new function HtmlToRtf()
Replies: 3
Views: 280

Re: How to convert a Date to an Unix TimeStamp?

Thank you, now it's working perfectly :)
by vilian
Mon Jan 29, 2024 2:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

Both are same.
In that website there is an implicit conversion from your time zone to UTC.
Try this code:
Code: Select all  Expand view
? FW_DateToUnix( UTC_TIMESTAMP() )

Note: UTC_TIMESTAMP() is an FWH function
by nageswaragunupudi
Mon Jan 29, 2024 2:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

Thank you Mr Rao, If I try with your function, I'm having this result: 168486480000 for 2023-05-23T18:00:00 SET DATE BRITmyDate := Hb_Dtot(Ctod("23/05/2023"),"18:00:00")? FW_DateToUnix( MyDate ) //168486480000  But in https://www.timestamp-converte...
by vilian
Mon Jan 29, 2024 2:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

Hi Guys, How could I convert a date/time to an Unix TimeStamp? If you want to use this functionality with MySql, you can use the MySql built-in functions UNIX_TIMESTAMP( <datetime> ) FROM_UNIXTIM( nUnixTime ) Please ...
by nageswaragunupudi
Mon Jan 29, 2024 1:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

* New functions: (valtostr.prg) FW_DateToUnix( dDate/tDateTime ) --> nUnixTimeStamp in MilliSeconds FW_UnixToDate( nUnixTimeStamp(inMilliSeconds) ) --> tDateTime #ifdef __XHARBOUR__   #xtranslate HB_STOT( <c> ) => STOT( <c> )   #xtranslate HB_DateTime()  ...
by nageswaragunupudi
Mon Jan 29, 2024 1:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

We have already implemented those functions for FWH already

Please lets wait for Mr. Rao comments about them
by Antonio Linares
Mon Jan 29, 2024 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: How to convert a Date to an Unix TimeStamp?

Ruth,
I tried it, but didn´t work here. IF you compare the result with that generated from https://www.timestamp-converter.com/, they aren´t the same.
by vilian
Mon Jan 29, 2024 1:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

How to convert a Date to an Unix TimeStamp?

Hi Guys,

How could I convert a date/time to an Unix TimeStamp?
by vilian
Mon Jan 29, 2024 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to convert a Date to an Unix TimeStamp?
Replies: 8
Views: 559

Re: DateTime calculation

... (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 expressed in milliseconds, you need to follow these steps: Get the date value from the Harbour ...
by Antonio Linares
Sat Jan 27, 2024 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 680

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 ...
by Ruth
Sat Jan 27, 2024 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DateTime calculation
Replies: 6
Views: 680

Re: Creating table with Trichedit

...   // Reset to default font and color    FWrite(oFile, "\f0\cf0 ") I understand that to insert an image file, first, you need to convert the image file to a Hexa decimal string and then insert it. // For BMPFWrite(oFile, "\intbl{\pict\wmetafile8\picw" + LTrim(Str(nImageWidth)) ...
by Silvio.Falconi
Thu Jan 25, 2024 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1439

Re: Creating table with Trichedit

... to default font and color    FWrite(oFile, "\f0\cf0 ") I understand that to insert an image file, first, you need to convert the image file to a Hexa decimal string and then insert it. // For BMPFWrite(oFile, "\intbl{\pict\wmetafile8\picw" + LTrim(Str(nImageWidth)) ...
by anserkk
Thu Jan 25, 2024 4:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating table with Trichedit
Replies: 18
Views: 1439
Next

Return to advanced search