[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Additional date string types for datevec
From: |
David Bateman |
Subject: |
Additional date string types for datevec |
Date: |
Mon, 09 Oct 2006 22:17:24 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
When looking at getting all of the octave-forge test code running, I was
trying to fix datesplit.m in octave-forge. It seems that the octave
version of datevec.m is missing some of the matlab compatible default
parse string types. I believe the attached patch adds most of them
D.
Index: scripts/time/datevec.m
===================================================================
RCS file: /cvs/octave/scripts/time/datevec.m,v
retrieving revision 1.4
diff -c -r1.4 datevec.m
*** scripts/time/datevec.m 30 Jun 2006 20:46:34 -0000 1.4
--- scripts/time/datevec.m 9 Oct 2006 20:07:02 -0000
***************
*** 63,69 ****
std_formats{++nfmt} = "HH:MM"; # 15
std_formats{++nfmt} = "HH:MM PM"; # 16
std_formats{++nfmt} = "mm/dd/yyyy"; # 23
! # custom formats
std_formats{++nfmt} = "mmmyy"; # 12
std_formats{++nfmt} = "mm/dd/yyyy HH:MM";
endif
--- 63,80 ----
std_formats{++nfmt} = "HH:MM"; # 15
std_formats{++nfmt} = "HH:MM PM"; # 16
std_formats{++nfmt} = "mm/dd/yyyy"; # 23
! std_formats{++nfmt} = "mmm-dd-yyyy HH:MM:SS";
! std_formats{++nfmt} = "mmm-dd-yyyy";
! std_formats{++nfmt} = "dd mmm yyyy HH:MM:SS";
! std_formats{++nfmt} = "dd mmm yyyy";
! std_formats{++nfmt} = "mmm dd yyyy HH:MM:SS";
! std_formats{++nfmt} = "mmm dd yyyy";
! std_formats{++nfmt} = "dd.mmm.yyyy HH:MM:SS";
! std_formats{++nfmt} = "dd.mmm.yyyy";
! std_formats{++nfmt} = "mmm.dd.yyyy HH:MM:SS";
! std_formats{++nfmt} = "mmm.dd.yyyy";
!
! # custom formats
std_formats{++nfmt} = "mmmyy"; # 12
std_formats{++nfmt} = "mm/dd/yyyy HH:MM";
endif
2006-10-09 David Bateman <address@hidden>
* time/datevec.m: Add additional compatible default parsing
strings
- Additional date string types for datevec,
David Bateman <=