From 8421073d464ae3bda3cfd05bd8dadbea6fca4cb2 Mon Sep 17 00:00:00 2001 From: koldo Date: Sun, 23 Jan 2011 21:42:39 +0000 Subject: [PATCH] .Core: Added doc git-svn-id: svn://ultimatepp.org/upp/trunk@3076 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/src.tpp/DateFmt$en-us.tpp | 32 ++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/src.tpp/DateFmt$en-us.tpp b/uppsrc/Core/src.tpp/DateFmt$en-us.tpp index ba0adc9d6..687f562c0 100644 --- a/uppsrc/Core/src.tpp/DateFmt$en-us.tpp +++ b/uppsrc/Core/src.tpp/DateFmt$en-us.tpp @@ -42,8 +42,38 @@ function.&] [s7; [*/ Return value]-|Filtered character.&] [s3; &] [s4;%- &] +[s5;:DayOfWeek`(Date`):%- [@(0.0.255) int]_[* DayOfWeek]([_^Date^ Date]_[*@3 date])&] +[s2; Day [%-*@3 date] number of day of week, beginning from 0.&] +[s3; &] +[s4;%- &] +[s5;:LastDayOfMonth`(Date`):%- [_^Date^ Date]_[* LastDayOfMonth]([_^Date^ Date]_[*@3 d])&] +[s2; Returns day [%-*@3 d] last day of the month.&] +[s0;l288; Example:&] +[s0;l288; [*C@3 ][*C LastDayOfMonth(Date(2011, 9, 23)) `= `"30/9/2011`"]&] +[s3; &] +[s4;%- &] +[s5;:FirstDayOfMonth`(Date`):%- [_^Date^ Date]_[* FirstDayOfMonth]([_^Date^ Date]_[*@3 d])&] +[s2; Returns day [%-*@3 d] first day of the month.&] +[s0;l288; Example:&] +[s0;l288; [*C@3 ][*C LastDayOfYear(Date(2011, 9, 23)) `= `"1/9/2011`"]&] +[s3; &] +[s4;%- &] +[s5;:LastDayOfYear`(Date`):%- [_^Date^ Date]_[* LastDayOfYear]([_^Date^ Date]_[*@3 d])&] +[s2; Returns day [%-*@3 d] last day of the year.&] +[s0;l288; Example:&] +[s0;l288; [*C@3 ][*C LastDayOfYear(Date(2011, 9, 23)) `= `"31/12/2011`"]&] +[s3; &] +[s4;%- &] [s5;:FirstDayOfYear`(Date`):%- [_^Date^ Date]_[* FirstDayOfYear]([_^Date^ Date]_[*@3 d])&] -[s2; Returns the first day of the year of day [%-*@3 d].&] +[s2; Returns day [%-*@3 d ]first day of the year.&] +[s0;l288; Example:&] +[s0;l288; [*C@3 ][*C FirstDayOfYear(Date(2011, 9, 23)) `= `"1/1/2011`"]&] +[s3; &] +[s4;%- &] +[s5;:DayOfYear`(Date`):%- [@(0.0.255) int]_[* DayOfYear]([_^Date^ Date]_[*@3 d])&] +[s2; Returns day [%-*@3 d ]number of day of year, beginning from 1.&] +[s0;l288; Example:&] +[s0;l288; [*C@3 ][*C DayOfYear(Date(2011, 1, 2)) `= 2]&] [s3; &] [s4;%- &] [s5;:SetDateFormat`(const char`*`):%- [@(0.0.255) void]_[* SetDateFormat]([@(0.0.255) const