Jira (PUP-6686) Timespan sometimes parses fractions incorrectly.

8 views
Skip to first unread message

Thomas Hallgren (JIRA)

unread,
Sep 7, 2016, 7:44:03 AM9/7/16
to puppe...@googlegroups.com
Thomas Hallgren created an issue
 
Puppet / Bug PUP-6686
Timespan sometimes parses fractions incorrectly.
Issue Type: Bug Bug
Assignee: Thomas Hallgren
Created: 2016/09/07 4:43 AM
Fix Versions: PUP 4.8.0
Priority: Normal Normal
Reporter: Thomas Hallgren

The following code, when applied,

notice(strftime(Timespan('02:03.4', '%M:%S.%L'), '%M:%S.%L'))

incorrectly notices

02:03.004

The reason is that the '4' is parsed by the '%L' format descriptor, and hence considered to be milliseconds. While this is correct in some sense, it's not very intuitive. Puppet should instead do what Ruby's DateTime#strptime does and treat %L and %N as values to the right of a decimal point, i.e. a "4" is intepreted as "0.4", which means 400000000 nanoseconds.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Martin Jacob (JIRA)

unread,
Sep 7, 2016, 8:36:03 AM9/7/16
to puppe...@googlegroups.com
Martin Jacob commented on Bug PUP-6686
 
Re: Timespan sometimes parses fractions incorrectly.

Bienvenue chez L’artisanat

Notre équipe de plomberie est disponible à votre service 24/24 et 7/7 avec le bon prix.
Merci de consulter notre site .
>>>>http://plombier94.urgenceartisanpascher.com/
Plombier Créteil
>>>>http://plombiercreteil.urgenceartisanpascher.com/
Trouver une société de plomberie via le net est une solution à la fois rapide et d’une grande simplicité.
Vous envisager rénover votre équipement sanitaire et vous cherchez un plombier pas cher Créteil de qualité affichant un prix raisonnable et disponible en permanence 24H/24et 7J/7
Vous êtes à la bonne adresse ! Notre plombier pas cher Créteil qualifié et certifié, vous garantisse une prestation de qualité et à moindre coût. Quel que soit votre problème en matière de plomberie sur Créteil : Notre artisan plombier assurera rapidement le dépannage.

Henrik Lindberg (JIRA)

unread,
Sep 7, 2016, 11:16:05 AM9/7/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Change By: Henrik Lindberg
Comment:
Bienvenue chez L’artisanat

Notre équipe de plomberie est disponible à votre service 24/24 et 7/7 avec le bon prix. 
Merci de consulter notre site .
>>>>http://plombier94.urgenceartisanpascher.com/
Plombier Créteil
>>>>http://plombiercreteil.urgenceartisanpascher.com/
Trouver une société de plomberie via le net est une solution à la fois rapide et d’une grande simplicité.
Vous envisager rénover votre équipement sanitaire et vous cherchez un plombier pas cher Créteil de qualité affichant un prix raisonnable et disponible en permanence 24H/24et 7J/7 
Vous êtes à la bonne adresse ! Notre plombier pas cher Créteil qualifié et certifié, vous garantisse une prestation de qualité et à moindre coût. Quel que soit votre problème en matière de plomberie sur Créteil : Notre artisan plombier assurera rapidement le dépannage.

Henrik Lindberg (JIRA)

unread,
Sep 7, 2016, 4:36:04 PM9/7/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: Language 2016-09-07 , PDS 2016-09-21

Thomas Hallgren (JIRA)

unread,
Sep 8, 2016, 4:44:02 AM9/8/16
to puppe...@googlegroups.com
Thomas Hallgren updated an issue
Change By: Thomas Hallgren
Acceptance Criteria: That applying:
{code:puppet}
notice(strftime(Timespan('02:03.4', '%M:%S.%L'), '%M:%S.%
- L'))
{code}
notices
{code}
02:03.4
{code}
and applying:
{code:puppet}
notice(strftime(Timespan('02:03.0456', '%M:%S.%N'), '%M:%S.%
- N'))
{code}
notices
{code}
02:03.0456
{code}

Thomas Hallgren (JIRA)

unread,
Sep 8, 2016, 5:21:02 AM9/8/16
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Sep 8, 2016, 7:39:03 AM9/8/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Release Notes Summary: Part of adding support for Timespan and Timestamp
Release Notes: Not Needed

Henrik Lindberg (JIRA)

unread,
Sep 9, 2016, 12:02:06 PM9/9/16
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Unassigned
Change By: Henrik Lindberg
Assignee: Henrik Lindberg

Craig Gomes (JIRA)

unread,
Sep 21, 2016, 4:08:04 PM9/21/16
to puppe...@googlegroups.com
Craig Gomes updated an issue
Change By: Craig Gomes
Sprint: Language 2016-09-07, PDS 2016-09-21 , PDS 2016-10-05

William Hopper (JIRA)

unread,
Sep 23, 2016, 2:21:21 PM9/23/16
to puppe...@googlegroups.com
William Hopper assigned an issue to qa
Change By: William Hopper
Status: Ready for  CI  Test
Assignee: qa

Eric Thompson (JIRA)

unread,
Sep 26, 2016, 5:13:04 PM9/26/16
to puppe...@googlegroups.com

Eric Thompson (JIRA)

unread,
Sep 26, 2016, 5:15:06 PM9/26/16
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
QA Highest Test Level: Unit

Eric Thompson (JIRA)

unread,
Sep 26, 2016, 5:16:04 PM9/26/16
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
QA Highest Test Level Reason: covered via Units

Eric Thompson (JIRA)

unread,
Sep 26, 2016, 5:16:48 PM9/26/16
to puppe...@googlegroups.com
Eric Thompson updated an issue
Change By: Eric Thompson
QA Risk Assessment: Medium

daniel laval (JIRA)

unread,
Oct 26, 2016, 10:46:04 AM10/26/16
to puppe...@googlegroups.com
daniel laval updated an issue
Change By: daniel laval
The following code, when applied,
{code Voir plus : puppet}
notice(strftime(Timespan('02 [http : 03 //histoire-bateaux-aviron . 4', '%M:%S fr/plombier-94/creteil-94000 . %L'), '%M html]
[http
: %S //histoire-bateaux-aviron . %L')) fr/plombier-95/sarcelles-95200.html]
{code}
incorrectly notices
{code}
02
[http : 03 //histoire-bateaux-aviron . 004 fr/plombier-95/cergy-95127.html]
{code}
The reason is that the '4' is parsed by the '%L' format descriptor, and hence considered to be milliseconds
[http://histoire-bateaux-aviron .  While this is correct in some sense, it's not very intuitive fr/plombier-95/franconville-95130 .  Puppet should instead do what Ruby's DateTime#strptime does and treat %L and %N as values to the right of a decimal point, i html]
[http://histoire-bateaux-aviron
. e fr/plombier-95/garges-les-gonesse-95140 .  a "4" is intepreted as "0.4", which means 400000000 nanoseconds. html]

daniel laval (JIRA)

unread,
Oct 26, 2016, 10:48:02 AM10/26/16
to puppe...@googlegroups.com

claud (JIRA)

unread,
Nov 10, 2016, 10:50:07 AM11/10/16
to puppe...@googlegroups.com

Joe Saille (JIRA)

unread,
Jan 31, 2018, 5:55:03 AM1/31/18
to puppe...@googlegroups.com
Joe Saille commented on Bug PUP-6686
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Thomas Hallgren (JIRA)

unread,
Jan 31, 2018, 6:19:02 AM1/31/18
to puppe...@googlegroups.com
Thomas Hallgren updated an issue
 
Change By: Thomas Hallgren
Comment: A comment with security level 'Developers' was removed.

Thomas Hallgren (JIRA)

unread,
Jan 31, 2018, 6:19:03 AM1/31/18
to puppe...@googlegroups.com

Thomas Hallgren (JIRA)

unread,
Jan 31, 2018, 6:19:03 AM1/31/18
to puppe...@googlegroups.com

Thomas Hallgren (JIRA)

unread,
Jan 31, 2018, 6:21:02 AM1/31/18
to puppe...@googlegroups.com
Thomas Hallgren updated an issue
Voir plus The following code, when applied, 
{code
:
[http
puppet} 
notice(strftime(Timespan('02
: //histoire-bateaux-aviron 03 . fr/plombier-94/creteil-94000 4', '%M:%S . html]
[http
%L'), '%M : //histoire-bateaux-aviron %S . fr/plombier-95/sarcelles-95200.html]
[http
%L')) 
{code} 
incorrectly notices 
{code} 
02
: //histoire-bateaux-aviron 03 . fr/plombier-95/cergy-95127 004 
{code} 
The reason is that the '4' is parsed by the '%L' format descriptor, and hence considered to be milliseconds
. html]
[http://histoire-bateaux-aviron
 While this is correct in some sense, it's not very intuitive . fr/plombier-95/franconville-95130  Puppet should instead do what Ruby's DateTime#strptime does and treat %L and %N as values to the right of a decimal point, i . html]
[http://histoire-bateaux-aviron
e . fr/plombier-95/garges-les-gonesse-95140  a "4" is intepreted as "0 . html] 4", which means 400000000 nanoseconds.

Joe Saille (JIRA)

unread,
Feb 9, 2018, 5:45:03 AM2/9/18
to puppe...@googlegroups.com
Joe Saille commented on Bug PUP-6686
This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)
Atlassian logo

meda (JIRA)

unread,
Jun 18, 2018, 4:12:02 AM6/18/18
to puppe...@googlegroups.com

claud (Jira)

unread,
Jul 3, 2020, 8:31:03 PM7/3/20
to puppe...@googlegroups.com
claud commented on Bug PUP-6686

[apprentus monde|https://www.apprentus.com/]

[cours particuliers à domicile|https://www.apprentus.fr]

[apprentus belgique|https://www.apprentus.be]

[apprentus Suisse|https://www.apprentus.ch]

[Apprentus DE|https://www.apprentus.de]

[enlèvement encombrant paris|https://babarclean.fr/]

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

apprentus (Jira)

unread,
Sep 28, 2020, 10:40:06 AM9/28/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages