|
@@ -1,5 +1,5 @@
|
|
-module(erlydtl_dateformat).
|
|
-module(erlydtl_dateformat).
|
|
--export([format/1, format/2, weeknum_year/3, year_weeknum/3]).
|
|
|
|
|
|
+-export([format/1, format/2]).
|
|
|
|
|
|
-define(TAG_SUPPORTED(C),
|
|
-define(TAG_SUPPORTED(C),
|
|
C =:= $a orelse
|
|
C =:= $a orelse
|
|
@@ -38,8 +38,7 @@
|
|
C =:= $Y orelse
|
|
C =:= $Y orelse
|
|
C =:= $z orelse
|
|
C =:= $z orelse
|
|
C =:= $Z orelse
|
|
C =:= $Z orelse
|
|
- C =:= $o orelse
|
|
|
|
- C =:= $e
|
|
|
|
|
|
+ C =:= $o
|
|
).
|
|
).
|
|
|
|
|
|
%
|
|
%
|
|
@@ -290,10 +289,6 @@ tag_to_value($z, {Y,M,D}, _) ->
|
|
tag_to_value($Z, _, _) ->
|
|
tag_to_value($Z, _, _) ->
|
|
"TODO";
|
|
"TODO";
|
|
|
|
|
|
-%% e – the name of the timezone of the given datetime object
|
|
|
|
-tag_to_value($e, _, _) ->
|
|
|
|
- "TODO";
|
|
|
|
-
|
|
|
|
%% o – the ISO 8601 year number
|
|
%% o – the ISO 8601 year number
|
|
tag_to_value($o, {Y,M,D}, _) ->
|
|
tag_to_value($o, {Y,M,D}, _) ->
|
|
integer_to_list(weeknum_year(Y,M,D));
|
|
integer_to_list(weeknum_year(Y,M,D));
|