# Post Toolbar Options - Timestamp?

**URL:** <https://meta.discourse.org/t/post-toolbar-options-timestamp/51853>\
**Category:** Feature\
**Created:** [10월 21, 2016, 12:42오후 UTC](https://meta.discourse.org/t/post-toolbar-options-timestamp/51853 "2016-10-21T12:42:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [12월 20, 2016, 11:49오후 UTC](https://meta.discourse.org/t/post-toolbar-options-timestamp/51853/7 "2016-12-20T23:49:48Z")

</div>

Try this:

```plaintext
<script type="text/discourse-plugin" version="0.4">
    api.onToolbarCreate(toolbar => {
      I18n.translations.en.js.updated_timestamp = "Updated Timestamp";
      toolbar.addButton({
        id: "updated_button",
        group: "extras",
        icon: "clock-o",
        title: "updated_timestamp",
        perform: e => e.addText("_Updated " + new Date().toString().substring(0,21) + "_")
      });
    });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/post-toolbar-options-timestamp/51853)._
