I use laravel, i need to create carbon object from the timestamp that i received.
时间戳:"yy-mm-dd HH:mm"
ex. '2016-12-20 10:26'
Is this possible ?
Or Any other solution ?
I use laravel, i need to create carbon object from the timestamp that i received.
时间戳:"yy-mm-dd HH:mm"
ex. '2016-12-20 10:26'
Is this possible ?
Or Any other solution ?
使用Carbon::parse('2016-12-20 10:26');
,它将返回Carbon
对象.