Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,235
Community Members
 
Community Events
184
Community Groups

What is the updateDate time format in the pull-request response?

Hi,

 

I have made a get API call to fetch all the pull-requests in a repository: 

https://company.com/rest/api/1.0/projects/AIRW/repos/canonical/pull-requests

 

Here is a snippet of the response:

"id": 26903,
"version": 203,
"title": "CMSVC-6964 Created On & Created By shown incorrectly in excel",
"description": "Updating the property names in the view so they are mapped correctly while exporting.",
"state": "OPEN",
"open": true,
"closed": false,
"createdDate": 1528960509081,
"updatedDate": 1529690155917,

 

What is the updateDate format here? How do I know how many days ago it was updated?

1 comment

Caterina _or Kate_ Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 22, 2018

Hi @Kaushik Veluru,

I've just done some testing on this and both the createdDate and the updatedDate are in Epoch Unix Time with a millisecond precision.

However, before applying a standard conversion, you'll need to reduce the precision of the field by diving for 1000 .

So, in your examples:

1528960509081 = 1528960509081/1000 = 1528960509 = 14th of June 2018 @ 7:15am (UTC)

1529690155917 = 1529690155917/1000 = 1529690155 = 22nd of June 2018 @ 5:55pm (UTC)

 

Cheers,

Caterina - Atlassian

Hi @Caterina _or Kate_ Curti,

 

I figured out soon after posting this question. Thanks for your reply though. 

Caterina _or Kate_ Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 22, 2018

Thanks for your feedback @Kaushik Veluru!

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events