The strftime() function converts a timestamp field to a string, formatted according to a specified formatstring pattern, for the local time zone. The timestamp field can then be displayed and manipulated as a string instead of a timestamp.
However a defect relating to this function can cause incorrect results in some cases. For example, the correct output month from strftime() for an input timestamp of "2018-02-01 00:00:00.000-0500" should be 'Feb'. However, strftime() will incorrectly return 'Mar' instead:
sbd --eval "from_localtime(2018,2,1,0,0,0)"
(timestamp) 2018-02-01 00:00:00.000-0500
sbd --eval "strftime("""%b""", from_localtime(2018,2,1,0,0,0))"
(string) Mar
For reference, %b in the above expression specifies the locale's abbreviated month name, as noted in the
strftime library documentation.