squiggle/packages/website/docs/Api/Duration.md

83 lines
734 B
Markdown
Raw Normal View History

2022-06-05 20:59:45 +00:00
---
2022-06-06 03:02:17 +00:00
sidebar_position: 5
2022-06-05 20:59:45 +00:00
title: Duration
---
### toString
```javascript
(duration):string
```
### minutes
```javascript
(number):duration
```
### hours
```javascript
(number):duration
```
### days
```javascript
(number):duration
```
### years
```javascript
(number):duration
```
### toHours
```javascript
(duration):number
```
### toMinutes
```javascript
(duration):number
```
### toDays
```javascript
(duration):number
```
### toYears
```javascript
(duration):number
```
### add
```javascript
(duration, duration):duration
```
### subtract
```javascript
(duration, duration):duration
```
### multiply
```javascript
(duration, duration):duration
```
### divide
```javascript
(duration, duration):duration
2022-06-05 21:13:56 +00:00
```