---
title: "UNIX时间戳与ISO-8601时间格式之间的转换"
author: "Nonkr"
date: "2013-12-18T23:58:20Z"
tags: []
categories: ["编程语言"]
slug: "unix-iso-8601"
draft: false
lastmod: "2013-12-18T23:58:20Z"
id: 1991810
url: "https://nonkr.iteye.com/blog/1991810"
---

```
strtotime('2010-03-24 08:15:42');

date('Y-m-d H:i:s', 1156219870);
```

 

```
select FROM_UNIXTIME(1156219870);

select UNIX_TIMESTAMP('2013-01-10 12:33:00');
```