/[suikacvs]/messaging/manakai/lib/Message/CGI/Util.pm
Suika

Diff of /messaging/manakai/lib/Message/CGI/Util.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by wakaba, Mon Nov 24 07:45:31 2008 UTC revision 1.2 by wakaba, Sat Dec 6 10:01:37 2008 UTC
# Line 9  our @EXPORT_OK = qw/ Line 9  our @EXPORT_OK = qw/
9    percent_encode percent_encode_na    percent_encode percent_encode_na
10    percent_decode    percent_decode
11    get_absolute_url    get_absolute_url
12      datetime_in_content
13  /;  /;
14    
15  require Encode;  require Encode;
# Line 47  sub get_absolute_url ($$) { Line 48  sub get_absolute_url ($$) {
48        ->uri_reference;        ->uri_reference;
49  } # get_absolute_url  } # get_absolute_url
50    
51    ## Returns the specified time in the "date or time strings in content" format.
52    sub datetime_in_content ($) {
53      my @time = gmtime shift;
54      return sprintf '%04d-%02d-%02d %02d:%02d:%02d+00:00',
55          $time[5] + 1900, $time[4] + 1, $time[3], $time[2], $time[1], $time[0];
56    } # datetime_in_content
57    
58  1;  1;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24