mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #6198 from cvrebert/patch-3
utils/__init__.py: some copyediting
This commit is contained in:
commit
770c586c4a
@ -1298,12 +1298,12 @@ def date_cast(date):
|
||||
raise ValueError('Unable to parse {0}'.format(date))
|
||||
|
||||
raise RuntimeError('Unable to parse {0}.'
|
||||
' Consider to install timelib'.format(date))
|
||||
' Consider installing timelib'.format(date))
|
||||
|
||||
|
||||
def date_format(date=None, format="%Y-%m-%d"):
|
||||
'''
|
||||
Converts date into a timebased string
|
||||
Converts date into a time-based string
|
||||
|
||||
date
|
||||
any datetime, time string representation...
|
||||
|
Loading…
Reference in New Issue
Block a user