DateConvert
- Downloads:
- Views:
- Rating:

DateConvert: Simple but fast date conversion
DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards.
Matlab's DATENUM, DATEVEC and DATESTR accept a variety of inputs, but in consequence they are slow. If the input format is exactly known, the conversion can be much faster:
DATENUM('17-Oct-2009 11:08:23'): 2.97 sec
DateConvert('17-Oct-2009 11:08:23', 'number'): 0.039 sec
=> 1.3% (1000 loops, 1.5GHz Pentium-M, Matlab 7.7)
DateConvert does *not* validate the input date as Matlab's date functions:
DATEVEC('32-Feb-2008 25:62:63') replies [2008 3 4 2 2 7],
DateConvert('32-Feb-2008 25:61:67' , 'vector') replies [2008 2 32 25 61 67] !
So DateConvert is nearly trivial, but optimized for speed. I needed it for sorting 200'000 time stamps and reduced the time from 217 to 11 sec.
Please run the unit-test TestDateVec to check validity and speed.
Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit.
Pure Matlab code, so compatibility to MacOS, Linux, 64 bit is expected.
English month names are needed.
Suggestions and question by email or in the comment section are very welcome.
See also: DateStr2Num (Jan Simon)
http://www.mathworks.com/matlabcentral/fileexchange/28093
Free download from Shareware Connection - DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 11-06-2013 | Rating: 0 | Title: DateConvert
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/25594/2/DateConvert.zip
ScaleTime - ScaleTime - fast linear matrix interpolation
DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM
FilterM - FilterM, FiltFiltM: Fast digital filter
strncmpr - Compare last N chars of strings or cell strings
Patch FILTFILT - If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column.
SimpleTest
WordPress Auto Poster Plugin
Professional Simulink Audio Equalizer
PHP Print / Echo
Ends Smart Form
Output buffering, and how it can change your life
ScriptCase - PHP Code Generator
Advanced Istaller for Java
Wind Turbine Model
FORMfields - The PHP Framework
C to C++ Converter
C++ Compiler
RTFGen - the PHP RTF generator
Cumulative Mann-Kendall trend test
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Sorting Pr Data
Sorting Card
Music Sorting Program
Column Wise Sorting Investment
Column Wise Sorting
strncmpr - Compare last N chars of strings or cell strings
fRMField - fRMField: Remove field(s) from a struct - fast C-MEX
XolidoSign - XolidoSign is a Windows Application for electronically sign and/or timestamp documents on your computer and for smart verification of received files on your computer. All kind of documents, like PDF (native Signature), Fast and easy. Full safety.
Form1 - Single file customizable web form and form processor, with hidden email address.
Jumpstart-it Event Management Software - Great event administration software for Windows + Internet. Create online forms. Automatically send emails and letters (via MS Word). Book payments efficiently. Export your data to Excel, CSV, XML. Process registrations in a snap. Only US $99!
Shareware Connection periodically updates pricing and software information of 'DateConvert' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'DateConvert' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DateConvert.
Panda Cloud Cleaner - PC security has become a tricky and complicated subject both for home users and network supervisors, with complexity and risk factors multiplying over the years. Using a single antivirus app may not be enough anymore. That explains why many users ...
Edius Pro - In the last few years, NLE video editor segment has become somewhat populated than earlier, with big names like Sony vying for attention with established behemoths like Adobe. However, Adobe’s move to subscription only model has deterred ...
Adobe SpeedGrade - Adobe has been a long time player in video editing and post production sector, with apps like Premier Pro and AfterEffects winning accolades and keeping customers hooked for several years. To cater to a niche section of the target users, it has ...
Avast Endpoint Protection Suite Plus - PC security has become a vital aspect of computing nowadays and business users face the heat more than home users. While installing and handling a standalone antivirus suite is neither tedious nor time consuming, the scenario is different in ...
AOMEI Partition Assistant Lite Edition - No matter whether you are a casual PC user or deal with a number of computers for professional needs, taking care of hardware components is a necessity. Among all hardware components used in laptop or desktop, hard disk is the most important one. ...
CyberGhost VPN - There are so many ways available to browse the web nowadays. You can use a plethora of devices and pick from various service providers to get online. However, tech savvy users resort to additional measures to access the internet without being ...
PhotoRescue PC EN - When you deal with computers and data, recovering deleted or lost data may become a necessity sometimes. The same thing can happen with digital images. When that happens, you need to use third party image recovery software. One such example is ...
Stellar Speedup Mac - While Macintosh computers are known for their stellar speed and multitasking prowess they also become subjected to pitfalls of usage. After prolonged use, junk files pile up and bits of installed apps remain scattered on the hard disk. These, ...
Corel Painter Lite - Corel’s graphics and illustration tools have been perennial favorites with millions of graphic designers and layout artists worldwide. While CorelDraw graphic suite is the company’s most popular app, Painter has also succeeded in ...
Adobe Media Encoder - Almost every PC user faces a situation where he or she needs to convert an audio or video file fast into a format of choice. There are several free and commercial apps, but the abundance of options can actually make selection difficult. If you ...

