# Date.from_micros ## 功能 通过微秒级 Unix 时间戳创建新的 Date 对象。 ## 语法 ```bt date_value.from_micros(micros) ``` ## 参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | ------ | ------ | ------ | ------ | ------ | | micros | Int | 是 | 无 | 微秒级 Unix 时间戳。 | ## 返回值 | 类型 | 说明 | | ------ | ------ | | Date | 返回对应本地时间的 Date 对象。 | ## 代码示例 ```bt result = date().from_micros(1000000).timestamp() // 输出:1 ``` ## 注意事项 - 原 Date 对象不会被修改,此方法返回新的 Date 对象。 - 微秒时间戳无法转换为本地时间时会报错。