[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: [PATCHv8 1/7] gitweb: refactor author name insertion
From:       Giuseppe Bilotta <giuseppe.bilotta () gmail ! com>
Date:       2009-06-30 23:15:50
Message-ID: cb7bb73a0906301615l1352f7c6i6a9939ccca6a70dc () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jun 30, 2009 at 11:08 PM, Jakub Narebski<jnareb@gmail.com> wrote:
> On Tue, 30 Jun 2009, Giuseppe Bilotta wrote:
>> 2009/6/30 Jakub Narebski <jnareb@gmail.com>:
>>> On Tue, 30 Jun 2009, Giuseppe Bilotta wrote:
>
> # prints time in local timezone, from result of parse_date
> # in the following format: " (HH:MM +/-tz_offset)" or " (%H:%M %z)"
> # with "atnight" warning when 0 <= hour_local < 6
>
> or something like that.  Or just
>
> # prints time in local timezone, from result of parse_date

How about

# prints time in local timezone, highlight night hours

>>>> +sub print_local_time {
>>>> +     my %date = @_;
>>>> +     if ($date{'hour_local'} < 6) {
>>>> +             printf(" (<span class=\"atnight\">%02d:%02d</span> %s)",
>>>> +                     $date{'hour_local'}, $date{'minute_local'}, $date{'tz_local'});
>>>> +     } else {
>>>> +             printf(" (%02d:%02d %s)",
>>>> +                     $date{'hour_local'}, $date{'minute_local'}, $date{'tz_local'});
>>>> +     }
>>>> +}

-- 
Giuseppe "Oblomov" Bilotta
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic