> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 时间戳转换为日期时间

## 指令说明

**描述：** 将时间戳转换为日期时间，默认采用秒级时间戳

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-02.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=c117496701564fc34b9a02f95088cc57" alt="时间戳转换为日期时间指令参数面板" width="648" height="444" data-path="helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-02.png" />

    | 参数        | 说明                    |
    | --------- | --------------------- |
    | **时间戳**   | 输入待转换到日期时间的时间戳        |
    | **时间戳级别** | 选择时间戳级别，分别为秒级、毫秒级、微秒级 |
    | **生成的变量** | 保存日期时间变量              |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-01.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=e9dcf27a6020de1705b34b54fe45db9d" alt="时间戳转换为日期时间使用示例" width="847" height="250" data-path="helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-01.png" />

**该流程执行逻辑：**

1. 先使用【日期时间转换为时间戳】将系统当前时间转换为时间戳，并打印该数值作为对照。
2. 将时间戳传入【时间戳转换为日期时间】，按配置的时区和格式生成日期时间结果。
3. 使用【打印日志】输出转换后的日期时间文本，确认结果与原始时间一致。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-03.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=00618bf5bc3c05ce5b49c95280672ab3" alt="时间戳转换为日期时间效果展示" width="838" height="298" data-path="helpcenter/commands/data-processing/images/timestampconverttodatetimecommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
