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; |
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; |