mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-24 04:21:15 +00:00
datemagic
This commit is contained in:
parent
692e1f99f5
commit
94019bc82f
|
@ -53,7 +53,7 @@ class DateMagic(Magics):
|
||||||
@argument('-z', '--timezone', action='store_true', help='prints time zone')
|
@argument('-z', '--timezone', action='store_true', help='prints time zone')
|
||||||
@argument('-y', '--python', action='store_true', help='prints Python version')
|
@argument('-y', '--python', action='store_true', help='prints Python version')
|
||||||
@argument('-i', '--ipython', action='store_true', help='prints IPython version')
|
@argument('-i', '--ipython', action='store_true', help='prints IPython version')
|
||||||
@argument('-p', '--packages', action=str, help='prints versions of Python modules and packages')
|
@argument('-p', '--packages', type=str, help='prints versions of Python modules and packages')
|
||||||
def date(self, line):
|
def date(self, line):
|
||||||
"""
|
"""
|
||||||
IPython magic function for printing the current date, time, Python,
|
IPython magic function for printing the current date, time, Python,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user