Commit 77f781d 1 parent 2d04427 commit 77f781d Copy full SHA for 77f781d
File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,16 @@ def newline_to_br(input)
712
712
input . gsub ( /\r ?\n / , "<br />\n " )
713
713
end
714
714
715
- # Reformat a date using Ruby's core Time#strftime( string ) -> string
715
+ # @liquid_public_docs
716
+ # @liquid_type filter
717
+ # @liquid_category date
718
+ # @liquid_summary
719
+ # Formats a date according to a specified format string.
720
+ # @liquid_description
721
+ # This filter formats a date using various format specifiers. If the format string is empty,
722
+ # the original input is returned. If the input cannot be converted to a date, the original input is returned.
723
+ #
724
+ # The following format specifiers can be used:
716
725
#
717
726
# %a - The abbreviated weekday name (``Sun'')
718
727
# %A - The full weekday name (``Sunday'')
@@ -741,8 +750,8 @@ def newline_to_br(input)
741
750
# %Y - Year with century
742
751
# %Z - Time zone name
743
752
# %% - Literal ``%'' character
744
- #
745
- # See also: http://www.ruby-doc.org/core/Time.html#method-i-strftime
753
+ # @liquid_syntax date | date: string
754
+ # @liquid_return [string]
746
755
def date ( input , format )
747
756
str_format = Utils . to_s ( format )
748
757
return input if str_format . empty?
You can’t perform that action at this time.
0 commit comments