Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5af05c0

Browse files
author
Thomas G. Lockhart
committed
Move declarations for timespan2tm() and tm2timespan() from dt.c to here.
1 parent5266471 commit5af05c0

File tree

1 file changed

+12
-9
lines changed
  • src/include/utils

1 file changed

+12
-9
lines changed

‎src/include/utils/dt.h

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: dt.h,v 1.23 1997/12/16 15:55:17 thomas Exp $
11+
* $Id: dt.h,v 1.24 1997/12/17 23:19:28 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -271,7 +271,7 @@ extern bool datetime_le(DateTime *dt1, DateTime *dt2);
271271
externbooldatetime_ge(DateTime*dt1,DateTime*dt2);
272272
externbooldatetime_gt(DateTime*dt1,DateTime*dt2);
273273
externbooldatetime_finite(DateTime*datetime);
274-
externintdatetime_cmp(DateTime*dt1,DateTime*dt2);
274+
externintdatetime_cmp(DateTime*dt1,DateTime*dt2);
275275
externDateTime*datetime_smaller(DateTime*dt1,DateTime*dt2);
276276
externDateTime*datetime_larger(DateTime*dt1,DateTime*dt2);
277277

@@ -284,13 +284,14 @@ extern bool timespan_le(TimeSpan *span1, TimeSpan *span2);
284284
externbooltimespan_ge(TimeSpan*span1,TimeSpan*span2);
285285
externbooltimespan_gt(TimeSpan*span1,TimeSpan*span2);
286286
externbooltimespan_finite(TimeSpan*span);
287-
externinttimespan_cmp(TimeSpan*span1,TimeSpan*span2);
287+
externinttimespan_cmp(TimeSpan*span1,TimeSpan*span2);
288288
externTimeSpan*timespan_smaller(TimeSpan*span1,TimeSpan*span2);
289289
externTimeSpan*timespan_larger(TimeSpan*span1,TimeSpan*span2);
290290

291291
externtext*datetime_text(DateTime*datetime);
292292
externDateTime*text_datetime(text*str);
293293
externtext*timespan_text(TimeSpan*timespan);
294+
externTimeSpan*text_timespan(text*str);
294295
externDateTime*datetime_trunc(text*units,DateTime*datetime);
295296
externTimeSpan*timespan_trunc(text*units,TimeSpan*timespan);
296297
externfloat64datetime_part(text*units,DateTime*datetime);
@@ -309,11 +310,13 @@ extern TimeSpan *datetime_age(DateTime *dt1, DateTime *dt2);
309310

310311
externvoidGetCurrentTime(structtm*tm);
311312
externDateTimeSetDateTime(DateTimedatetime);
312-
externinttm2datetime(structtm*tm,doublefsec,int*tzp,DateTime*dt);
313+
externinttm2datetime(structtm*tm,doublefsec,int*tzp,DateTime*dt);
313314
externintdatetime2tm(DateTimedt,int*tzp,structtm*tm,double*fsec,char**tzn);
315+
externinttimespan2tm(TimeSpanspan,structtm*tm,float8*fsec);
316+
externinttm2timespan(structtm*tm,doublefsec,TimeSpan*span);
314317

315318
externvoidj2date(intjd,int*year,int*month,int*day);
316-
externintdate2j(intyear,intmonth,intday);
319+
externintdate2j(intyear,intmonth,intday);
317320

318321
externdoubletime2t(constinthour,constintmin,constdoublesec);
319322

@@ -332,9 +335,9 @@ extern int
332335
DecodeDateDelta(char*field[],intftype[],
333336
intnf,int*dtype,structtm*tm,double*fsec);
334337

335-
externintEncodeDateOnly(structtm*tm,intstyle,char*str);
336-
externintEncodeTimeOnly(structtm*tm,doublefsec,intstyle,char*str);
337-
externintEncodeDateTime(structtm*tm,doublefsec,int*tzp,char**tzn,intstyle,char*str);
338-
externintEncodeTimeSpan(structtm*tm,doublefsec,intstyle,char*str);
338+
externintEncodeDateOnly(structtm*tm,intstyle,char*str);
339+
externintEncodeTimeOnly(structtm*tm,doublefsec,intstyle,char*str);
340+
externintEncodeDateTime(structtm*tm,doublefsec,int*tzp,char**tzn,intstyle,char*str);
341+
externintEncodeTimeSpan(structtm*tm,doublefsec,intstyle,char*str);
339342

340343
#endif/* DT_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp