I was working with Google drive rest APIs to list my Google drive files. I was fetching below metadata of the file in my drive. In that, I am getting the "Created Time" in RFC 3339 format. Can you help me to convert the time returned by the Google drive rest APIs to IST? Is there any way to do this in Linux platform?
{
"files": [
{
"id": "1y_GB6OCBENf_gDMAzAHdN",
"name": "testfile.jpg",
"webViewLink": "https://drive.google.com/file/d/1y_GB6OCBENf_gDMAzAHdN/view?usp=drivesdk",
"createdTime": "2019-06-17T02:08:50.959Z"
}
]
}
Note: I was using curl tool to access Google drive rest APIs from my Linux server.
I understand that you want to get the creation date of your files, convert it to IST and use it in your code, but correct me if I’m wrong. You could do it this way: