DateTimeToken

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.lilypondfile" { graph [label="abjad.lilypondfile"]; node [color=1]; "abjad.lilypondfile.DateTimeToken.DateTimeToken" [URL="../api/abjad/lilypondfile/DateTimeToken.html#abjad.lilypondfile.DateTimeToken.DateTimeToken", color=black, fontcolor=white, label="Date\nTime\nToken", target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/lilypondfile/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.lilypondfile.DateTimeToken.DateTimeToken"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.lilypondfile.DateTimeToken.DateTimeToken(date_string=None)

A LilyPond file date / time token.

>>> abjad.DateTimeToken()
DateTimeToken()

Attributes Summary

__format__ Formats date / time token.
__repr__ Gets interpreter representation of date / time token.
date_string Gets date string of date / time token.

Special methods

__format__(format_specification='')

Formats date / time token.

>>> token = abjad.DateTimeToken()
>>> print(format(token)) 
2014-01-04 14:42

Returns string.

__repr__()

Gets interpreter representation of date / time token.

>>> abjad.DateTimeToken()
DateTimeToken()

Returns string.


Read-only properties

date_string

Gets date string of date / time token.

>>> token = abjad.DateTimeToken()
>>> token.date_string 
'2014-01-23 12:21'

Returns string.