~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/model/cdatetime.py

  • Committer: Curtis Hovey
  • Date: 2011-12-22 17:24:23 UTC
  • mto: This revision was merged to the branch mainline in revision 14585.
  • Revision ID: curtis.hovey@canonical.com-20111222172423-b0hyny6w944eewhz
Fixed doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
DAYS_PER_MONTH = 30
20
20
DAYS_PER_WEEK = 7
21
21
 
 
22
 
22
23
class AgingAdapter:
23
24
    """Adapt an IHasDateCreated to an IAging."""
24
25
    implements(IAging)
27
28
        self.context = context
28
29
 
29
30
    def currentApproximateAge(self):
30
 
        """See canonical.launchpad.interfaces.ITimeDelta."""
 
31
        """See `ITimeDelta`."""
31
32
        age = ""
32
33
        datecreated = self.context.datecreated
33
34
        right_now = datetime.now(pytz.timezone('UTC'))