Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Duration
  4. inHours property
inHours
description

inHours property

int getinHours

The number of entire hours spanned by thisDuration.

The returned value can be greater than 23.For example, a duration of four days and three hourshas 99 entire hours.

const duration = Duration(days: 4, hours: 3);print(duration.inHours); // 99

Implementation

int get inHours => _duration ~/ Duration.microsecondsPerHour;
  1. Dart
  2. dart:core
  3. Duration
  4. inHours property
Duration class

[8]ページ先頭

©2009-2025 Movatter.jp