#474 Add an elapsedTime method to DateTime

None
wont-fix
Classes (154)
none
5
2012-08-22
2012-07-13
No

Date time instances can be easily used as elapsed time counters that are not subject to the rules surrounding time('e') when crossing call boundaries. While the following code is pretty easy:

say .DateTime~new - timestamp

This usage would be more obvious if included in a simple method

say timestamp~elapsedTime

Discussion

  • Rick McGuire

    Rick McGuire - 2012-08-22
    • status: open --> accepted
    • assigned_to: Rick McGuire
    • pending_work_items: --> code+doc+test
     
  • Rick McGuire

    Rick McGuire - 2012-08-22
    • status: accepted --> wont-fix
    • pending_work_items: code+doc+test --> none
     
  • Rick McGuire

    Rick McGuire - 2012-08-22

    Duh, the DataTime class already has an elapsed method.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks