How to use HB_DateTimeToSeconds() function?

Post Reply
User avatar
richard-service
Posts: 815
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Has thanked: 3 times
Been thanked: 1 time
Contact:

How to use HB_DateTimeToSeconds() function?

Post by richard-service »

Dear Antonio,
I use this HB_DateTimeToSeconds() function and get error below:

Compiling...
Harbour 3.2.0dev (r2404101339)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'testfV.prg' and generating preprocessed output to 'testfV.ppo'...
Lines 5063, Functions/Procedures 2
Generating C source output to 'testfV.c'... Done.
Embarcadero C++ 7.70 for Win32 Copyright (c) 1993-2023 Embarcadero Technologies, Inc.
testfV.c:
Turbo Incremental Link 6.97 Copyright (c) 1997-2022 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_HB_DATETIMETOSECONDS' referenced from D:\FWH2402\SAMPLES\TESTFV.OBJ
Error: Unable to perform link
* Linking errors *
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
Enrico Maria Giordano
Posts: 8783
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: How to use HB_DateTimeToSeconds() function?

Post by Enrico Maria Giordano »

There is no such a function in the whole Harbour and xHarbour repository. Please check the function name.
User avatar
Antonio Linares
Site Admin
Posts: 42826
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 126 times
Been thanked: 117 times
Contact:

Re: How to use HB_DateTimeToSeconds() function?

Post by Antonio Linares »

Dear Richard,

Please copy testfv.prg source code here, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
MaxP
Posts: 91
Joined: Thu Jul 12, 2007 2:02 pm
Has thanked: 1 time
Contact:

Re: How to use HB_DateTimeToSeconds() function?

Post by MaxP »

Hi Richard,

Could this feature be useful to you?

Code: Select all | Expand

SecondsFrom1970()

#pragma BEGINDUMP

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "hbapi.h"

HB_FUNC( SECONDSFROM1970 )

{
        unsigned long count;
        time_t *tmppointer=NULL;
        
        count = time( tmppointer ) ;
        
        hb_retnl( count ) ;
}

#pragma ENDDUMP
Massimo
Post Reply