Spec-Zone.ru › Dart 2

dart:core

inMinutes property

int inMinutes

The number of whole minutes spanned by this Duration.

The returned value can be greater than 59. For example, a duration of three hours and 12 minutes has 192 minutes.

const duration = Duration(hours: 3, minutes: 12);
print(duration.inMinutes); // 192

Implementation

int get inMinutes => _duration ~/ Duration.microsecondsPerMinute;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Duration/inMinutes.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API