# 额外选项

> 英文标题：Extra options
> 官网原文：https://typeorm.io/docs/migrations/extra
> 文档版本：TypeORM v1.1
> 体例：英文原文（EN）与中文译文（ZH）逐块并列，共 6 块

---

<!-- EN -->
# Extra options

<!-- ZH -->
# 额外选项

<!-- EN -->
## Timestamp

<!-- ZH -->
## 时间戳

<!-- EN -->
If you need to specify a timestamp for the migration name, use the `-t` (alias for `--timestamp`) and pass the timestamp (should be a non-negative number)

<!-- ZH -->
如果你需要为迁移名称指定时间戳，请使用 `-t`（`--timestamp` 的别名）并传入时间戳（应为非负数）

<!-- EN -->
```shell
typeorm -t <specific-timestamp> migration:{create|generate}
```

<!-- ZH -->
```shell
typeorm -t <specific-timestamp> migration:{create|generate}
```

<!-- EN -->
You can get a timestamp from:

<!-- ZH -->
你可以这样获取时间戳：

<!-- EN -->
```js
Date.now()
/* OR */ new Date().getTime()
```

<!-- ZH -->
```js
Date.now()
/* 或者 */ new Date().getTime()
```
