Lines Matching full:time

2  * Controller for date-time
19 $scope.time = {mode: '', owner: ''}; class in $scope
20 // Possible time owners
21 …// https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Time/Owner.…
24 var timePath = '/xyz/openbmc_project/time/';
28 // The time is returned as Epoch microseconds convert to
38 // Central Standard Time (UTC-06:00)
39 // Moscow Standard Time (UTC+03:00)
53 $scope.time.owner =
59 $scope.time.mode = data.data[timePath + 'sync_method']
83 …* https://github.com/openbmc/phosphor-time-manager/blob/master/README.md#special-note-on-changing-…
84 * When time mode is initially set to Manual from NTP,
86 * stopping but not stopped, setting time will return an error.
94 if ($scope.time.mode == 'Manual' || $scope.time.owner == 'Split') {
105 toastService.success('Date and time settings saved');
110 'Date and time settings could not be saved');
120 if ($scope.time.mode == 'Manual') {
123 if ($scope.time.owner != 'Host') {
126 // Even though we are setting Host time, we are setting from
127 // the BMC date and time fields labeled "BMC and Host Time"
129 if ($scope.time.owner == 'Host') {
134 // its own date and time field set from it.
135 if ($scope.time.owner == 'Split') {
142 toastService.success('Date and time settings saved');
147 'Date and time settings could not be saved');
176 'xyz.openbmc_project.Time.Synchronization.Method.' +
177 $scope.time.mode);
182 'xyz.openbmc_project.Time.Owner.Owners.' + $scope.time.owner);
185 function setBMCTime(time) { argument
186 // Add the separate date and time objects and convert to Epoch time in
188 return APIUtils.setBMCTime(time);
191 function setHostTime(time) { argument
192 // Add the separate date and time objects and convert to Epoch time
194 return APIUtils.setHostTime(time);
206 // A safe, easy way to get the timezone (e.g. Central Standard Time) is
207 // to subtract the time string without a timezone from the time string
210 // (e.g. Moscow Standard Time).