1
0
Fork 0
fgdata/Phi/topics/Environment/DateTime.html
Torsten Dreyer f4830030bf Phi: implement setting of date and time
Use MIT licensed clockpicker from
http://weareoutman.github.io/clockpicker/ for Android like clock picker

Know bug: next/prev month click only works with ctrl-click (jquery bug?)
2015-09-15 18:05:51 +02:00

25 lines
720 B
HTML

<style>
.phi-datetime-2digits {
width: 2em;
}
</style>
<fieldset>
<legend>Time of today</legend>
<!-- ko foreach: timesOfToday -->
<button data-bind="text: $data, click: $parent.setTimeOfToday">Clock Time</button>
<!-- /ko -->
</fieldset>
<fieldset>
<legend>Date and Time</legend>
<div>
Current System Time is: <span data-bind="text: timeAsString"></span>
</div>
<div data-bind="datepicker: { value: simTimeAsLocalTime, onSelect: onDateSelect }"></div>
<div class="input-group clockpicker">
<input type="text" class="form-control" value="18:00">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
</fieldset>