Introduction

DeepSeek Harness (DSH) follows the “everything is a plugin” philosophy. Developers often need to handle time formats within agent logic. When it is necessary to convert among Unix timestamps, ISO 8601 formats, or relative time, or to obtain the current time, the dsh-timestamp plugin can be introduced.

What Is This

dsh-timestamp is a DSH plugin implemented in pure Node.js and maintained by the user uckkk. It provides bidirectional conversion between timestamps and human-readable time formats, helping agents more conveniently handle time-related business logic.

Core Features

This plugin provides the following core tools:

  • timestamp_convert: supports conversion among Unix timestamps, ISO 8601 strings, and relative time strings.
  • timestamp_now: obtains the current Unix timestamp.

Installation and Enabling

Use the official installation command to add the plugin:

dsh plugin add dsh-timestamp

After installation, the dsh.profile.bundles field in the project’s package.json file should be configured as:

"dsh.profile.bundles": ["dsh-timestamp"]

It takes effect after restarting the DSH process.

Typical Usage

Directly invoke the tools registered by the plugin within a session.

For example, to query the time corresponding to a timestamp:

1700000000 这个时间戳是什么时候
→ 调用 timestamp_convert(value=1700000000)

Use Cases and Notes

After installation, this plugin runs Node.js code locally with the permissions of the current DSH process. If security is a concern, please review the source code before installation (available on GitHub: https://github.com/uckkk/dsh-timestamp) and confirm the license.

Conclusion

If you need to handle time format conversion, you can quickly integrate this tool using the steps above. For more plugin details, refer to the community directory: https://www.skillhub.cn/plugins/uckkk/dsh-timestamp.