datetime-smart-format
lq.tick-format.datetime-smart-format(time, smart-first=true, period="month", year="[year]", month="[month repr:short]", day="[day]", hour="[hour]:[minute]", minute="[hour]:[minute]", second="[hour]:[minute]:[second]")(source)
Displays a datetime tick.
Parameters
time : datetime
The date/time to display.
smart-first : bool
default: true
Whether to use datetime-smart-first
for first instances in a period.
period : str
default: "month"
The smallest changing period type between consecutive ticks.
year : str
| function
default: "[year]"
How to display years.
month : str
| function
default: "[month repr:short]"
How to display months.
day : str
| function
default: "[day]"
How to display days.
hour : str
| function
default: "[hour]:[minute]"
How to display hours.
minute : str
| function
default: "[hour]:[minute]"
How to display minutes.
second : str
| function
default: "[hour]:[minute]:[second]"
How to display seconds.