what is a fractional second?

前端 未结 2 1329
天命终不由人
天命终不由人 2020-12-15 23:35

I am trying to understand what a fractional second is. I found a fractional second,here:

double uhd::time_spec_t::get_frac_secs  (   void        )          


        
2条回答
  •  心在旅途
    2020-12-15 23:56

    The example here may help you to understand what the fractional second is:

    TIMESTAMP{(fractional-seconds)}

    The optional parameter specifies the number of fractional seconds. If the parameter is not specified, the number of fractional seconds defaults to 6.

    The following example shows several timestamps, with different numbers of fractional seconds.

    DCL-S TS0 TIMESTAMP(0);    // YYYY-MM-DD-hh-mm-ss
    DCL-S TS1 TIMESTAMP(1);    // YYYY-MM-DD-hh-mm-ss.f
    DCL-S TS6A TIMESTAMP;      // YYYY-MM-DD-hh-mm-ss.ffffff
    DCL-S TS6B TIMESTAMP(6);   // YYYY-MM-DD-hh-mm-ss.ffffff
    DCL-S TS12 TIMESTAMP(12);  // YYYY-MM-DD-hh-mm-ss.ffffffffffff
    

    via IBM Knowledge Center - TIMESTAMP{(fractional-seconds)}

提交回复
热议问题