« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Gauges
Date and Time Labels in Clocks
In[1]:=
X
opts = {GaugeFrameStyle -> GrayLevel[0.2]};
In[2]:=
X
Grid[{{ClockGauge[DateString[], GaugeLabels -> {"Hour24", ":", "Minute"}, opts], ClockGauge[DateString[], GaugeLabels -> {"Hour12Short", ":", "Minute", " ", "AMPM"}, opts], ClockGauge[DateString[], GaugeLabels -> {"Hour24", ":", "Minute", ":", "Second"}, opts]}, {ClockGauge[DateString[], GaugeLabels -> {Placed["Time", Top], Placed["DateShort", Bottom]}, opts], ClockGauge[DateString[], GaugeLabels -> {Placed["Time", Top], Placed["CST", Bottom]}, opts], ClockGauge[DateString[], GaugeLabels -> {Placed["Time", Top], Placed[{"MonthNameShort", " ", "DayShort"}, Bottom]}, opts]}}]
Clocks generate labels using named date and time components.
Out[2]=