Changeset 2cbd847 in rattail


Ignore:
Timestamp:
07/24/2022 09:09:01 PM (6 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
d094569
Parents:
c6756e8
Message:

Add AppHandler.today() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/app.py

    rc6756e8 r2cbd847  
    145145        return make_utc(*args, **kwargs)
    146146
     147    def today(self, **kwargs):
     148        """
     149        Return the current date.
     150        """
     151        return self.localtime().date()
     152
    147153    def load_entry_points(self, group, **kwargs): # pragma: no cover
    148154        warnings.warn("method is deprecated, please use "
Note: See TracChangeset for help on using the changeset viewer.