fn timestamp_ceil_millis(ts: DateTime<Utc>) -> DateTime<Utc> {
        let millis = ts.timestamp_millis();
        let ts2 = Utc.timestamp_millis(millis);
        if ts2 != ts {
            // ts has sub-milli precision, increase millis by 1 (ceiling)
            Utc.timestamp_millis(millis + 1)
        } else {
            ts2
        }
    }
/// Return smallest "milliseconds only" timestamp greater than or equal to the given timestamp.
///
/// The result will not have micro- or nanoseconds attached.
Return smallest "milliseconds only" timestamp greater than or equal to the given timestamp.
The result will not have micro- or nanoseconds attached.
Return smallest " milliseconds only " timestamp greater than or equal to the given timestamp . The result will not have micro - or nanoseconds attached .
fn timestamp_ceil_millis(ts: DateTime<Utc>) -> DateTime<Utc> {
        let millis = ts.timestamp_millis();
        let ts2 = Utc.timestamp_millis(millis);
        if ts2 != ts {
            // ts has sub-milli precision, increase millis by 1 (ceiling)
            Utc.timestamp_millis(millis + 1)
        } else {
            ts2
        }
    }
fn timestamp_ceil_millis ( ts : DateTime < Utc > ) -> DateTime < Utc > { let millis = ts . timestamp_millis ( ) ; let ts2 = Utc . timestamp_millis ( millis ) ; if ts2 != ts { // ts has sub-milli precision, increase millis by 1 (ceiling) Utc . timestamp_millis ( millis + 1 ) } else { ts2 } }
Return smallest "milliseconds only" timestamp greater than or equal to the given timestamp.
Return smallest " milliseconds only " timestamp greater than or equal to the given timestamp .
ts
DateTime<Utc>
ts
DateTime<Utc>