Size: 3681
Comment: Version 1.0 introduced
|
← Revision 7 as of 2018-03-03 11:46:17 ⇥
Size: 112
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
== Overview == This namespace contains functions that deal with date and time. Note that most of the functions have been implemented by Phil Last (http://aplwiki.com/PhilLast) - unless stated otherwise - and generously granted to the APLTree project. This class does not need .NET. == Examples == The following table gives examples for all functions. The table is ordered by categories. Note that not all syntactically possible features are demonstrated by these examples. For details execute: {{{ ]ADOC_Browse #.DateAndTime }}} (What is [[ADOC]]?) (What is the [[UserCommands/Adoc|ADOC user command]]?) || '''Result''' || '''`⍺`''' || '''Function''' || '''`⍵`''' || ||<-4> Cast || || 735965.058159722 || || `DateTime2DayDecimal` || 20160102.012345 || || 20160102.012345 || || `DayDecimal2DateTime` || 735965.058159722 || || 24193 || || `DateTime2Month` || 20160102.058159722 || || 20160101 || || `Month2DateTime` || 24193 || || 2016 1 1 1 23 45 0 || || `DateTime2Timestamp` || 20160101.012345 || || 20160101.012345 || || `Timestamp2DateTime` || 2016 1 1 1 23 45 || || 2016 1 2 1 23 44 999 || || `DayDecimal2Timestamp` || 735965.058159722 || || 735965.058148148 || || `Timestamp2DayDecimal` || 2016 1 2 1 23 44 || || 736329 || || `Date2GregorianSerialDate` || 2016 12 31 || || 2016 12 31 || || `GregorianSerialDate2Date` || 736329 || ||<-4> Week numbers || || 52 || || `WeekNo_ISO` || 2016 12 31 || || 2016 12 26 || || `DateFrom_Year_WeekNumberISO` || 2016 52 || || 2016 12 29 || 'Thursday' || `DateFrom_Year_WeekNumberISO` || 2016 52 || || 53 || || `WeekNo_US` || 016 12 31 || || 2016 12 25 || || `DateFrom_Year_WeekNumberUS` || 2016 53 || || 2016 12 29 || 'Thursday' || `DateFrom_Year_WeekNumberUS` || 2016 53 || ||<-4> Misc || || 5 || || `DayOfWeekAsNumber` || 2016 1 1 || || 'Friday' || || `DayOfWeek` || 2016 1 1 || || 20000423 20010415 || || `Easter` || 2000 2001 || || '2016-12-31 01:23:45' || || `FormatDateTime` || 20161231.012345 || || 1 1 0 || || `LeapYear` || 2000 2016 2100 || || 60 || || `OrdinalNumber` || 2016 2 29 || ||<-4> Math || || ... ⍝TODO⍝ || || `AddPeriod2DateTime` || |
The project has been relocated to [[https://github.com/aplteam/DateAndTime]] on 2018-03-03. |