Mercurial > libervia-backend
comparison src/tools/utils.py @ 1935:1128feb54180
core: removed pyfeed and xe dependencies:
pyfeed and xe where still used only for date format handling, and there is already dateutil which is a dependency of Wokkel.
Furthermore pyfeed and xe are still not on pypi, causing troubles for installation with pip
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Apr 2016 17:08:12 +0200 |
parents | 2daf7b4c6756 |
children | 0931b5a6213c |
comparison
equal
deleted
inserted
replaced
1934:2daf7b4c6756 | 1935:1128feb54180 |
---|---|
41 | 41 |
42 def xmpp_date(timestamp=None, with_time=True): | 42 def xmpp_date(timestamp=None, with_time=True): |
43 """Return date according to XEP-0082 specification | 43 """Return date according to XEP-0082 specification |
44 | 44 |
45 to avoid reveling the timezone, we always return UTC dates | 45 to avoid reveling the timezone, we always return UTC dates |
46 the string returned by this method is valid with RFC 3339 | |
46 @param timestamp(None, float): posix timestamp. If None current time will be used | 47 @param timestamp(None, float): posix timestamp. If None current time will be used |
47 @param with_time(bool): if True include the time | 48 @param with_time(bool): if True include the time |
48 @return(unicode): XEP-0082 formatted date and time | 49 @return(unicode): XEP-0082 formatted date and time |
49 """ | 50 """ |
50 template_date = u"%Y-%m-%d" | 51 template_date = u"%Y-%m-%d" |