[1505] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[nelhage/barnowl] d1ae4a: Export a time_t for messages to perl as 'unix_time...

daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:17:21 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Tue, 9 Jun 2009 09:37:39 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com

Branch: refs/heads/master
Home:   http://github.com/nelhage/barnowl

Commit: d1ae4a421ba5874c2899090ebdd7079e9bbddc25
    http://github.com/nelhage/barnowl/commit/d1ae4a421ba5874c2899090ebdd7079e9bbddc25
Author: Nelson Elhage <nelhage@mit.edu>
Date:   2009-06-09 (Tue, 09 Jun 2009)

Changed paths:
  M perl/lib/BarnOwl/Message.pm
  M perlconfig.c

Log Message:
-----------
Export a time_t for messages to perl as 'unix_time'

Previously, the only way for perl code to access the time was through the
'time' string, which code had to strptime() or otherwise parse in order
to render the time in a different format.


Commit: 5550eb09288cd1e20bd0d23ec60bba36e0019f0d
    http://github.com/nelhage/barnowl/commit/5550eb09288cd1e20bd0d23ec60bba36e0019f0d
Author: Nelson Elhage <nelhage@mit.edu>
Date:   2009-06-09 (Tue, 09 Jun 2009)

Changed paths:
  M perl/lib/BarnOwl/Style/Default.pm

Log Message:
-----------
Default style: Use strftime() on unix_time

Instead of parsing time_str using a regex, just call strftime on the
actual time_t to format the bits we want.



home help back first fref pref prev next nref lref last post