Skip to content

Commit

Permalink
Mark first parameters in DateTime.local() and DateTime.utc() as optio…
Browse files Browse the repository at this point in the history
…nal (#567)
  • Loading branch information
tdukart authored and icambron committed Sep 3, 2019
1 parent 361321f commit 5bf9b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datetime.js
Expand Up @@ -422,7 +422,7 @@ export default class DateTime {

/**
* Create a local DateTime
* @param {number} year - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
* @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
* @param {number} [month=1] - The month, 1-indexed
* @param {number} [day=1] - The day of the month
* @param {number} [hour=0] - The hour of the day, in 24-hour time
Expand Down Expand Up @@ -460,7 +460,7 @@ export default class DateTime {

/**
* Create a DateTime in UTC
* @param {number} year - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
* @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
* @param {number} [month=1] - The month, 1-indexed
* @param {number} [day=1] - The day of the month
* @param {number} [hour=0] - The hour of the day, in 24-hour time
Expand Down

0 comments on commit 5bf9b3a

Please sign in to comment.