FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
time_timevalue.c
Go to the documentation of this file.
1
/* timevalue function */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
double
fb_TimeValue
(
FBSTRING
*s )
7
{
8
int
hour;
9
int
minute;
10
int
second;
11
int
succeeded =
fb_TimeParse
( s, &hour, &minute, &second );
12
13
fb_hStrDelTemp
( s );
14
15
if
( !succeeded ) {
16
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
17
return
0;
18
}
19
20
fb_ErrorSetNum
(
FB_RTERROR_OK
);
21
22
return
fb_TimeSerial
( hour, minute, second );
23
}
24
rtlib
time_timevalue.c
Generated on Thu Jan 23 2014 19:40:14 for FreeBASIC by
1.8.4