Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.DateTime and leap year/leap seconds
From: Jeff Garland (azswdude_at_[hidden])
Date: 2015-07-14 19:08:58


Hi Jens -

Leap second support never got added to the library -- most applications can
ignore them. In principle, of course, you can use the library to help you
do the calculations. Basically they are like leap years except that they
are irregular -- so you have to use a collection to perform the adjustment
instead of an algorithm.

Little confused about the use case though -- are the microseconds you
receive including the leap seconds or not including them? Basically which
way are you adjusting?

Jeff

On Fri, Jul 10, 2015 at 5:10 AM, Auer, Jens <jens.auer_at_[hidden]> wrote:

> Hi,
>
>
>
> I am considering using Boost.DateTime in one of my projects, and there
> have been some concerns about handling leap seconds on the customers side.
> The documentation says that other libraries do not handle leap seconds
> correctly, but it does not state that Boost.DateTime does. I found only
> one mail from 2009 on the mailing list asking about leap seconds, but this
> does not give an answer. Does anybody have some information on this?
>
>
>
> The computations I intend to do are actually rather limited. I will be
> given a year and a number microseconds, and have to compute the day in the
> year that this describes from the start of the year, together with
> microseconds and milliseconds in the day. So what I want to implement is a
> function tuple<days, milliseconds, microsends> convertTime(year,
> microseconds).
>
>
>
> Best wishes,
>
> Jens
>
>
>
> *--*
>
> *Dr. Jens Auer *| CGI | Software Engineer
>
> CGI Deutschland Ltd. & Co. KG
> Rheinstraße 95 | 64295 Darmstadt | Germany
>
> T: +49 6151 36860 154
>
> jens.auer_at_[hidden]
>
> Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie
> unter de.cgi.com/pflichtangaben.
>
>
>
> CONFIDENTIALITY NOTICE: Proprietary/Confidential information belonging to
> CGI Group Inc. and its affiliates may be contained in this message. If you
> are not a recipient indicated or intended in this message (or responsible
> for delivery of this message to such person), or you think for any reason
> that this message may have been addressed to you in error, you may not use
> or copy or deliver this message to anyone else. In such case, you should
> destroy this message and are asked to notify the sender by reply e-mail.
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net