I got this json and created_time
value show time in integer format not a in time formate but I want this created_time in proper format. How to get created_time in proper format?
"filter"=>"Normal",
"created_time"=>"1421677966",
"link"=>"http://instagram.com/p/yCfw5sKorK/",
"likes"=>{
"count"=>1,
"data"=>[
{
"username"=>"nikhil.thombare",
"profile_picture"=>"https://instagramimages-a.akamaihd.net/profiles/anonymousUser.jpg",
"id"=>"1651917721",
"full_name"=>"Nikhil Narendra Thombare"
}
]
你可以使用Time at
Time.at(created_time)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.