|
1 | 1 | <!DOCTYPE html> |
2 | | -<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> |
| 2 | +<html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
6 | | -<meta name="generator" content="litedown 0.9.2.1"> |
| 6 | +<meta name="generator" content="litedown 0.9.3"> |
7 | 7 | <title>Help pages</title> |
8 | 8 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xiee/utils@1.14.24/css/default.min.css"> |
9 | 9 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xiee/utils@1.14.24/css/article.min.css"> |
|
164 | 164 | <a href="#sec:man-grouped_date_accessors"><code>get_offset()</code></a> |
165 | 165 | <a href="#sec:man-grouped_date_accessors"><code>get_offset.default()</code></a> |
166 | 166 | <a href="#sec:man-grouped_date_accessors"><code>get_offset.grates_period()</code></a> |
| 167 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration()</code></a> |
| 168 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.default()</code></a> |
| 169 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_yearweek()</code></a> |
| 170 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_int_period()</code></a> |
| 171 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_isoweek()</code></a> |
| 172 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_epiweek()</code></a> |
| 173 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_yearmonth()</code></a> |
| 174 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_month()</code></a> |
| 175 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_yearquarter()</code></a> |
| 176 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_year()</code></a> |
| 177 | +<a href="#sec:man-grouped_date_accessors"><code>get_interval_duration.grates_period()</code></a> |
167 | 178 | </p> |
168 | 179 | <p> |
169 | 180 | <b>-- <kbd>I</kbd> --</b> |
@@ -392,7 +403,7 @@ <h3 id="sec:examples_2" class="unnumbered unlisted">Examples</h3> |
392 | 403 | as_epiweek(Sys.Date()) |
393 | 404 | </code></pre> |
394 | 405 | <pre><code>#> <grates_epiweek[1]> |
395 | | -#> [1] "2026-W08" |
| 406 | +#> [1] "2026-W12" |
396 | 407 | </code></pre> |
397 | 408 | <pre><code class="language-r"># POSIXt coercion |
398 | 409 | as_epiweek(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York")) |
@@ -545,7 +556,39 @@ <h3 id="sec:usage_4" class="unnumbered unlisted">Usage</h3> |
545 | 556 | get_offset(x, ...) |
546 | 557 |
|
547 | 558 | ## S3 method for class 'grates_period' |
548 | | -get_offset(x, ...)</code></pre> |
| 559 | +get_offset(x, ...) |
| 560 | + |
| 561 | +get_interval_duration(x, ...) |
| 562 | + |
| 563 | +## Default S3 method: |
| 564 | +get_interval_duration(x, ...) |
| 565 | + |
| 566 | +## S3 method for class 'grates_yearweek' |
| 567 | +get_interval_duration(x, ...) |
| 568 | + |
| 569 | +## S3 method for class 'grates_int_period' |
| 570 | +get_interval_duration(x, ...) |
| 571 | + |
| 572 | +## S3 method for class 'grates_isoweek' |
| 573 | +get_interval_duration(x, ...) |
| 574 | + |
| 575 | +## S3 method for class 'grates_epiweek' |
| 576 | +get_interval_duration(x, ...) |
| 577 | + |
| 578 | +## S3 method for class 'grates_yearmonth' |
| 579 | +get_interval_duration(x, ...) |
| 580 | + |
| 581 | +## S3 method for class 'grates_month' |
| 582 | +get_interval_duration(x, ...) |
| 583 | + |
| 584 | +## S3 method for class 'grates_yearquarter' |
| 585 | +get_interval_duration(x, ...) |
| 586 | + |
| 587 | +## S3 method for class 'grates_year' |
| 588 | +get_interval_duration(x, ...) |
| 589 | + |
| 590 | +## S3 method for class 'grates_period' |
| 591 | +get_interval_duration(x, ...)</code></pre> |
549 | 592 | <h3 id="sec:arguments_4" class="unnumbered unlisted">Arguments</h3> |
550 | 593 | <table role = "presentation"> |
551 | 594 | <tr><td><code>x</code></td> |
@@ -765,7 +808,7 @@ <h3 id="sec:examples_6" class="unnumbered unlisted">Examples</h3> |
765 | 808 | as_isoweek(Sys.Date()) |
766 | 809 | </code></pre> |
767 | 810 | <pre><code>#> <grates_isoweek[1]> |
768 | | -#> [1] "2026-W09" |
| 811 | +#> [1] "2026-W13" |
769 | 812 | </code></pre> |
770 | 813 | <pre><code class="language-r"># POSIXt coercion |
771 | 814 | as_isoweek(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York")) |
@@ -880,7 +923,7 @@ <h3 id="sec:examples_7" class="unnumbered unlisted">Examples</h3> |
880 | 923 | as_month(Sys.Date(), n = 2) |
881 | 924 | </code></pre> |
882 | 925 | <pre><code>#> <grates_month[1]> |
883 | | -#> [1] "2026-Jan to 2026-Feb" |
| 926 | +#> [1] "2026-Mar to 2026-Apr" |
884 | 927 | </code></pre> |
885 | 928 | <pre><code class="language-r"># character coercion |
886 | 929 | as_month("2019-05-03", n = 4) |
@@ -2000,7 +2043,7 @@ <h3 id="sec:examples_17" class="unnumbered unlisted">Examples</h3> |
2000 | 2043 | as_yearmonth(Sys.Date()) |
2001 | 2044 | </code></pre> |
2002 | 2045 | <pre><code>#> <grates_yearmonth[1]> |
2003 | | -#> [1] "2026-Feb" |
| 2046 | +#> [1] "2026-Mar" |
2004 | 2047 | </code></pre> |
2005 | 2048 | <pre><code class="language-r"># POSIXt coercion |
2006 | 2049 | as_yearmonth(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York")) |
@@ -2283,7 +2326,7 @@ <h3 id="sec:examples_19" class="unnumbered unlisted">Examples</h3> |
2283 | 2326 | as_yearweek(Sys.Date()) |
2284 | 2327 | </code></pre> |
2285 | 2328 | <pre><code>#> <grates_yearweek_monday[1]> |
2286 | | -#> [1] "2026-W09" |
| 2329 | +#> [1] "2026-W13" |
2287 | 2330 | </code></pre> |
2288 | 2331 | <pre><code class="language-r"># POSIXt coercion |
2289 | 2332 | as_yearweek(as.POSIXct("2019-03-04 01:01:01", tz = "America/New_York")) |
@@ -2321,7 +2364,7 @@ <h3 id="sec:examples_19" class="unnumbered unlisted">Examples</h3> |
2321 | 2364 | </div> |
2322 | 2365 | <footer><div class="flex-col"> |
2323 | 2366 | <p>Developed by Tim Taylor</p> |
2324 | | -<p>Site built with <a href="https://github.com/yihui/litedown">litedown</a> v0.9.2.1</p> |
| 2367 | +<p>Site built with <a href="https://github.com/yihui/litedown">litedown</a> v0.9.3</p> |
2325 | 2368 | </div></footer> |
2326 | 2369 | <script src="https://cdn.jsdelivr.net/npm/@xiee/utils@1.14.24/js/sidenotes.min.js" defer></script> |
2327 | 2370 | <script src="https://cdn.jsdelivr.net/npm/@xiee/utils@1.14.24/js/appendix.min.js" defer></script> |
|
0 commit comments