Stéphane Adjemian (Charybdis)
7518a46de0
Fixed bug. Function isdates should not be located in @dates folder, otherwise the function is not found if the input argument is not a dates object (which makes the function useless).
2013-11-04 08:18:18 +01:00
Stéphane Adjemian (Charybdis)
901ab2758c
Fixed bug (dates constructor of the form dates(FREQ, YEAR, SUBPERIOD) when FREQ is given by a character).
2013-10-24 09:42:15 +02:00
Stéphane Adjemian (Charybdis)
868c3c6a5e
Renamed dynDates class as dates.
2013-10-15 15:36:21 +02:00
Stéphane Adjemian (Charybdis)
f813702b32
Added a routine to test if an integer (a vector of integers) can be interpreted as a subperiod (a vector of subperiods).
2013-10-15 15:03:43 +02:00
Stéphane Adjemian (Charybdis)
068564628d
Added condition (input must be a string) in isyearly, isquaterly, ismonthly and isweekly functions.
2013-10-14 18:17:32 +02:00
Stéphane Adjemian (Charybdis)
db7f431010
Added routine.
2013-10-14 18:12:50 +02:00
Stéphane Adjemian (Charybdis)
04c206a9b6
Routine string2freq should not be case sensitive. Character 'A' is allowed for yearly (annual) dates.
2013-10-12 23:47:51 +02:00
Stéphane Adjemian (Charybdis)
586aa13e41
Added routines for manipulating dates.
2013-10-12 23:42:12 +02:00
Stéphane Adjemian (Charybdis)
f9315f1409
Added missing commented string (first line) for triggering the unitary tests.
2013-10-11 23:36:29 +02:00
Stéphane Adjemian (Charybdis)
fe28887409
Added new (low level) routine to add periods to a date or vector of dates (using the internal representation of dates).
2013-10-11 17:49:42 +02:00
Stéphane Adjemian (Charybdis)
22144ef359
Added a routine for converting a string into a date structure.
...
A date structure has two fields:
o freq, an integer scalar (=1, 4, 12, 52) specifying the frequency.
o time, a 1*2 matrix of integers, time(1) is the year and time(2) the subperiod number.
2013-10-10 14:33:31 +02:00
Stéphane Adjemian (Charybdis)
adcc218a0d
Added new routine to test if a string can be interpreted as a date.
2013-10-10 14:30:38 +02:00
Stéphane Adjemian (Charybdis)
5a1b5aaf73
Fixed bug (month number 10 was missing).
2013-10-10 14:05:12 +02:00
Stéphane Adjemian (Charybdis)
f4e32dbd6f
Efficiency improvements. Rewrote some routines using regular expressions.
2013-10-10 12:52:27 +02:00
Stéphane Adjemian (Charybdis)
7f10bccf4a
Moved isweekly, ismonthly, isquaterly and isyearly routines from matlab/@dynSeries/private to matlab/utilities/dates. Adapted dynare_config conformably to these changes.
2012-12-03 16:15:36 +01:00