# time format

**URL:** <https://community.zeek.org/t/time-format/731>\
**Category:** Zeek\
**Created:** [April 22, 2005, 11:00pm UTC](https://community.zeek.org/t/time-format/731 "2005-04-22T23:00:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)\
**Post date:** [April 22, 2005, 11:00pm UTC](https://community.zeek.org/t/time-format/731/1 "2005-04-22T23:00:15Z")

</div>

> &nbsp;&nbsp;&nbsp;Does anybody know how to print time to readable format something like:  
> 04/22/2005 12:00:00 with Bro language ? I couldn't find such format in the  
> existing bro scripts. thanks.

There's a "strftime(fmt: string, d: time): string" function you can call.

&nbsp;&nbsp;&nbsp;&nbsp;Vern

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:37pm UTC](https://community.zeek.org/t/time-format/731/2 "2022-05-06T15:37:26Z")

</div>


