GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Introduction
  • Reference
  • Miscellaneous
  • Types
  • Routines
  • Raku®
  • Chat
  • More
  • About
  • Report an issue with this site
  • Report an issue with the documentation content
  • RakuDocumentation.epub
  • EPUB v3 specification
  • License

This view

  • Original page
  • New address

GeezerVison is showing docs.raku.org — class Duration | Raku Documentation

No Table of Contents or Index available
class Duration

Length of time

Raku highlighting
class Duration is Cool does Real { }

A Duration represents a length of time in atomic seconds, with fractions. Like an Instant, it is epoch-agnostic.

Durations can be subtracted from or added to Instants to yield another, new Instant. Subtracting one Instant from another yields a Duration. A Duration can also result from mathematical operations between two Durations when it makes sense (namely, the addition, subtraction, or modulus of two Durations). It can also be added, subtracted or divided modulo Real numbers.

The type of object returned for other numeric operations is currently unspecified.

Typegraph§

Type relations for Duration

Expand chart above

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.