Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns the time part of any given timestamp.


Code Block
languagebash
titleSyntax
linenumberstrue
 timePart(timestamp, timeZone) #Output: Number 


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timePart({issue.created}, LOCAL)



This example returns the time part of the issue creation date in milliseconds.

Infoui-text-box
typeinfo

If the creation date was March 25th, 2020 23:15 the output would be 23:15 (in milliseconds).




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
timestamp

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber


UI Text Box
typetip

If you need the date part instead you might want to have a look at the function datePart().



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the time part of any given date.

Output

Status
subtletrue
titlenumber

Label