Issue
I have unix timestamp in table, wants to show to user using Carbon. How can I achieve ?
e.g.
1487663764.99256To
2017-02-24 23:23:14.654621
Solution
Did you check the carbon docs? I think this is what youre looking for:
Carbon::createFromTimestamp(-1)->toDateTimeString();
Checkout http://carbon.nesbot.com/docs/#api-instantiation
Answered By - surgiie
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.