Code covered by the BSD License  

Highlights from
mydate

  • convert_to_doy
  • cputime_res
  • cputime_tol
  • dirup
  • flip
  • get_stack_trace
  • is_function_called
  • mat2cellcol
  • mat2cellrow
  • myassert
  • mydatebaseMYDATEBASE: Define base information for internal use in mydate functions.
  • mydatebodMYDATEBOD: Return epoch at beginning of the day containing input epoch.
  • mydatebowMYDATEBOW: Return epoch at beginning of the week containing input epoch.
  • mydatedayMYDATEDAY: Convert epoch interval to (decimal) days.
  • mydatedayiMYDATEDAYI: Convert from (decimal) days (to epoch interval in internal format).
  • mydatedoyMYDATEDOY: Convert epoch to (decimal) day of year.
  • mydatedoy_auxMYDATEDOY_AUX: Auxiliary function for day of year conversions.
  • mydatedoy_inv(this is just an interface)
  • mydatedoyiMYDATEDOYI: Convert from (decimal) day of year (to epoch internal format).
  • mydatedoywMYDATEDOYW: Convert epoch to (decimal) day of water-year.
  • mydatedoyw_auxMYDATEDOYW_AUX: Auxiliary function for day of water-year conversions.
  • mydatedoywiMYDATEDOYWI: Convert from (decimal) day of water-year (to epoch internal format).
  • mydatedoywi_auxMYDATEDOYW_AUX: Auxiliary function for day of water-year conversions.
  • mydatedoywi_aux2MYDATEDOYWI_AUX2: Auxiliary function for day of water-year conversions.
  • mydategps(this is just an interface)
  • mydategpsi(this is just an interface)
  • mydategpswMYDATEGPSW: Convert epoch to GPS week (and optionally day and second):
  • mydategpsw_aux
  • mydategpswiMYDATEGPSWI: Convert from GPS week (and optionally day and second).
  • mydatehelp(this is just an interface)
  • mydatehodMYDATEHOD: Convert epoch to (decimal) hours of day (optionally, elapsed since beginning of a different day).
  • mydatehourMYDATEHOUR: Convert epoch interval to (decimal) hours.
  • mydatehouriMYDATEHOURI: Convert from (decimal) hours (to epoch interval in internal format).
  • mydatejdMYDATEJD: Convert epoch to (decimal) Julian day.
  • mydatejd_inv(this is just an interface)
  • mydatejdiMYDATEJDI: Convert from (decimal) Julian day (to epoch internal format).
  • mydatemjdMYDATEMJD: Convert epoch to (decimal) modified Julian day.
  • mydatemjd_inv(this is just an interface)
  • mydatemjdiMYDATEMJDI: Convert from (decimal) modified Julian day (to epoch internal format).
  • mydatenumMYDATENUM: Convert from vector parts (to internal format).
  • mydatenumiMYDATENUMI: Convert epoch to vector parts.
  • mydatesecMYDATESEC: Convert epoch interval to (decimal) seconds.
  • mydateseciMYDATESECI: Convert from (decimal) seconds (to epoch interval in internal format).
  • mydatesodMYDATESOD: Return (decimal) seconds of day (optionally, elapsed since beginning of a different day).
  • mydatesod_aux
  • mydatesod_inv(this is just an interface)
  • mydatesodiMYDATESODI: Return (decimal) seconds of day (to internal format); (optionally, elapsed since beginning of a different day).
  • mydatesowMYDATESOW: Convert to seconds of the week.
  • mydatesow_aux(this is just an interface)
  • mydatesow_inv(this is just an interface)
  • mydatesowiMYDATESOWI: Convert from seconds of the week.
  • mydatestdMYDATESTD: Convert epoch to standardized annual format.
  • mydatestd_aux
  • mydatestd_inv(this is just an interface)
  • mydatestdiMYDATESTDI: Convert from standardized annual format (to epoch in internal format).
  • mydatestrMYDATESTR: Convert epoch to text character string.
  • mydatestr_inv(this is just an interface)
  • mydatestriMYDATESTR: Convert from text character string (to epoch in internal format).
  • mydatevecMYDATEVEC: Convert epoch to vector parts.
  • mydateveciMYDATEVECI: Convert from vector parts (to epoch in internal format).
  • mydateyearMYDATEYEAR: Convert epoch interval to (decimal) years.
  • randint!shared
  • strend
  • strendi
  • strstart
  • strstarti
  • testTODO: in stack information, replace pointers to temporary files with
  • test_mydate.m
  • Contents.mMYDATE
  • View all files
Be the first to rate this file! 14 Downloads (last 30 days) File Size: 38.8 KB File ID: #31065 Version: 1.4

mydate

by

 

16 Apr 2011 (Updated )

Augments MATLAB's date/time library for improved handling of epochs and formats commonly used in GPS

| Watch this File

File Information
Description

Augments MATLAB's date/time library for improved handling of epochs and formats commonly used in GPS.
The base date or reference epoch is brought closer to contemporary dates for improved precision (from MATLAB's year 0 to epoch 2000.0); the base unit is also changed (from multiples of days to seconds).
Epoch values are retained as a serial scalar real number so that manipulation is easier compared to handling epoch parts separately (e.g., using intersect() to find common epochs).
File naming follows MATLAB's own as close as possible with an obvious prefix. MATLAB's own functions are used internally whenever possible.
Vector (non-scalar) input is supported.

Unzip the file into, e.g., 'c:\work\fx\mydate\'; make sure the directory structure is preserved. Then type
    addpath(genpath('c:\work\fx\mydate'))
(not to be confused with addpath(genpath('c:\work\fx\mydate\mydate')))
Please run test_mydate to check your installation.
The first function to try is mydatenum().

Julian day conversions follow from Peter Baum's excellent "Date algorithms", available at http://mysite.verizon.net/aesir_research/date/date0.htm

Please type doc datenum for background.

Acknowledgements

Testit inspired this file.

This file inspired Geod Yet Another Geodetic Toolbox.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
23 Oct 2013 Felipe G. Nievinski

I've just submitted an update which includes the missing file -- my apologies, and thank you for your interest.

Comment only
23 Oct 2013 christie harper

missing mat2cellcol

Comment only
Updates
19 Nov 2012 1.2

some default values for optional input arguments

22 Oct 2013 1.3

added H1 lines

24 Oct 2013 1.4

included missing routine (mat2cellrow.m)

Contact us