what is a fractional second?

前端 未结 2 1327
天命终不由人
天命终不由人 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:53

    Fractional second is the part of the time that is not an integer. So if you have a time like 12345678.9 the fractional second is 0.9

    0 讨论(0)
  • 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)}

    0 讨论(0)
提交回复
热议问题