strfime missing `t` for custom_dates
samueljohn opened this issue · 2 comments
samueljohn commented
Hi Sebastian,
thanks for watermark.py! I wanted ISO formatted dates and to me this looks like a typo (missing "t" in strftime
):
%watermark -c "%Y-%m-%d" -v -m -p numpy,scipy,matplotlib,seaborn,pydicom -g
.ipython/extensions/watermark.py in watermark(self, line)
103 self.out += 'Last updated: '
104 if args.custom_time:
--> 105 self.out += '%s ' %strfime(args.custom_time)
106 if args.date:
107 self.out += '%s ' %strftime('%d/%m/%Y')
NameError: name 'strfime' is not defined
samueljohn commented
It's 🍵 time.
rasbt commented
Thanks, Samuel, good catch, haha, I am thankful for this easy fix ;). It should work fine now!