Be the first to rate this file! 1 Download (last 30 days) File Size: 3.16 KB File ID: #13201

Convert Time Array to a Datenum Array (Win32)

by Mark Evans

 

01 Dec 2006 (Updated 01 Dec 2006)

Converts a (Mx1) arrays of UTC time to a (Mx1) array of MATLAB serial dates

| Watch this File

File Information
Description

UTC time (universal time convention) is used in ANSI-C standard for defining time. This is measured in seconds since 1970, at the Prime Meridian.

The UTC2Datenum_array function takes a M x 1 array of UTC time values and converts it to a M x 1 array of Matlab serial Time values.

This code is derived from the UTC2datenum function written by Abraham Cohn of Philips Medical Systems.

This code does not convert UTC to local time

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Get UTC Time, Convert a UTC time to Datenum (supports vectors, Win/Linux), Get UTC Time, Convert a UTC time to Datenum (both Win32/Linux versions)

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
utc Mark Evans 22 Oct 2008 08:51:01
datenum Mark Evans 22 Oct 2008 08:51:01
time Mark Evans 22 Oct 2008 08:51:01
ansic Mark Evans 22 Oct 2008 08:51:01
prime meridian Mark Evans 22 Oct 2008 08:51:01

Contact us at files@mathworks.com