anchor.diff:  create_date_german_string_test() ->
   		?assertEqual("20.10.2012", create_date_german_string({{2012,10,20}, {0,0,0}})).
   get_formated_date_test() ->
  -	?assertEqual("2013-05-23 11:39:02", get_formated_date({{2013,5,23},{11,39,2}})).
  +	?assertEqual("2013-05-23 11:39:02", get_formated_date(space, {{2013,5,23},{11,39,2}})).
   
   get_formated_date_for_now_test() ->
   	?assertEqual("2013-05-23 11:44:05", get_formated_date_for_now({1369,302245,468365})).
  
positive.code: construct_date({Y, M, D}) ->
  	lists:concat([Y ,"-" ,M ,"-", D]).
  	
  get_formated_date(Date) ->
  	{{Year,Month,Day},{Hour,Min,Seconds}} = Date,
  	Args = [Year, Month, Day, Hour, Min, Seconds],
  	A = io_lib:format("~B-~2.10.0B-~2.10.0B ~2.10.0B:~2.10.0B:~2.10.0B", Args),
  	lists:flatten(A).
  
  get_formated_date_for_now(0) ->
  	get_formated_date_for_now(now());
  
  get_formated_date_for_now(Now) ->
  	get_formated_date(calendar:now_to_local_time(Now)).
  
  get_formated_date_for_seconds(Seconds) ->
  	get_formated_date(calendar:gregorian_seconds_to_datetime(Seconds)).
  
  get_first_day({Y, M, _D}) ->
  	date_lib:create_date_string({{Y, M, 1}, {0,0,0}}).
  
negative.code: seconds_to_date_test() ->
  	?assertEqual("2015-05-07 06:40:36", seconds_to_date(63598200036)).	
  
  get_formated_date_for_seconds_test() ->	
  	?assertEqual("2015-05-07_06:40:36", get_formated_date_for_seconds(63598200036)).
  
  -endif.
  