Skip to content

Commit

Permalink
added documentation of isoweek (#6237)
Browse files Browse the repository at this point in the history
Co-authored-by: nitish jha <nitishjha@nitishs-MacBook-Air.local>
  • Loading branch information
Nj221102 and nitish jha authored Jul 11, 2024
1 parent 92a7a3c commit 59d8c0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions man/IDateTime.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ They can round or truncate to hours and minutes.
Note for ITime's with 30 seconds, rounding is inconsistent due to rounding off a 5.
See 'Details' in \code{\link{round}} for more information.
Functions like \code{week()} and \code{isoweek()} provide week numbering functionality.
\code{week()} computes completed or fractional weeks within the year,
while \code{isoweek()} calculates week numbers according to ISO 8601 standards,
which specify that the first week of the year is the one containing the first Thursday.
This convention ensures that week boundaries align consistently with year boundaries,
accounting for both year transitions and varying day counts per week.
}
\value{
Expand Down

0 comments on commit 59d8c0c

Please sign in to comment.