Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tools.json field question

2 REPLIES 2
Reply
Message 1 of 3
ubunibme
276 Views, 2 Replies

Tools.json field question

It looks like the current cloud based tool libs, ie the ones you create yourself are downloadable as a zipped .json file. There is a:

"last_modified":1468774083104   field in there. This is an integer counting up from some starting point. What is that starting point, what are the units?

2 REPLIES 2
Message 2 of 3
xander.luciano
in reply to: ubunibme

Hey @ubunibme!

That variable is the timestamp in what's known as "Epoch time" or "Unix time" which represents a point in time, defined as the number of seconds (in this case though, milliseconds) that have elapsed since January 1, 1970, minus the number of leap seconds (again, milliseconds in this case) that have occurred since then.

Assuming you are working in javascript, you can get the date from this value with the Date.setMilliseconds(); function.

var milliseconds = 1468774083104;
// Must set to 0, this sets the date to the epoch time 00:00:00:00 Jan 1, 1970
var d = new Date(0);
d.setMilliseconds(milliseconds);

// Result
d = Sun Jul 17 2016 08:48:03 GMT-0700 (Pacific Daylight Time)


If you are using another language, just google "convert Epoch time milliseconds to date python" (replace python with whatever language you are using).

Hope that helps,
- Xander Luciano

 


Xander Luciano
CAM Content Developer

If my post is helpful, press the Kudo button - If it resolves your issue, press Accept as Solution!
Quick Tips: When to resselect CAM geometry | Understanding Smoothing in CAM | Adaptive Facing | Online GCode Viewer
Message 3 of 3
ubunibme
in reply to: xander.luciano

Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report