Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties



Status
Tech review

Status
titletodo

Style guide

Status
titletodo



Status
titletodo

Status
colourYellow
titleReady for review

Status
colourGreen
titledone

Status
colourRed
titleflagged


Page properties
hiddentrue


Short descriptionTimestamp equivalent of any given day plus an offset of n days where weekends don't count.
Output

Status
subtletrue
titlenumber



UI Text Box
sizemedium
typeinfo

Status
subtletrue
titleTimestamp
equivalent of any given day plus an offset of n days where weekends don't count.


Syntax


Code Block
addDaysSkippingWeekends t, n, time_zone)


Info

If represents a timestamp which coincides with a Friday, adding n = 1 will return a date-time for the following Monday.

Negative values for are used in order to subtract days to t.

(warning) Noten cannot be higher than 50000.


Input data type(s)


ddd
time_zone
Status
subtletrue
titlenumber
epresenting a timestamp
time_zone
Status
subtletrue
titlenumber
epresenting a timestamp
time_zone
Status
subtletrue
titlenumber
epresenting a timestamp


Output

Status
subtletrue
titlenumber


Examples

Parser expressionDescription


Code Block
timeInStatus("Open", "my_schedule", LOCAL)


Number of milliseconds the current issue has stayed in status "Open" within the schedule called "my_schedule" matching the server's default timeZone.


s

s