Merge lp://qastaging/~dannf/laika/support-multiple-date-types into lp://qastaging/laika
Proposed by
dann frazier
Status: | Merged |
---|---|
Merged at revision: | 20 |
Proposed branch: | lp://qastaging/~dannf/laika/support-multiple-date-types |
Merge into: | lp://qastaging/laika |
Diff against target: |
27 lines (+12/-5) 1 file modified
laika (+12/-5) |
To merge this branch: | bzr merge lp://qastaging/~dannf/laika/support-multiple-date-types |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Chiang | Approve | ||
Review via email: mp+100469@code.qastaging.launchpad.net |
To post a comment you must log in.
Why not just cast lpdate to str and take split from there? The lang is
duck typing after all and there isn't any other actions taken here. Now
you've got two code paths that do the same thing when:
dt = datetime. datetime. strptime( str(lpdate) .split( '.')[0] , '%Y-%m- %dT%H:% M:%S')
will do.