Rank: 4040 based on 6 downloads (last 30 days) and 1 file submitted
photo

Anders Björk

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Anders
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Nov 2004 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk clock, fun, utc, datenum, time utils, utilities 6 4
  • 2.33333
2.3 | 3 ratings
Comments and Ratings on Anders' Files View all
Updated File Comment by Comments Rating
25 Jan 2010 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk Burch, Jeff

I believe there is a problem with these as the base time for UTC should be 1970 and not 1904. This impacts the calculation of baseutc in both files:

current:
baseutc=datenum(1904,1,1,Timezone,0,0)*seconds_per_day;

recommended change:
baseutc=datenum(1970,1,1,Timezone,0,0)*seconds_per_day;

06 Apr 2005 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk Palacios, Rafael

date2utc provides the number of seconds since 01Jan1900 at 00:00:00 UTC instead of the number of seconds sinde 01Jan1970 at 00:00:00 UTC.

08 Dec 2004 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk Lawrence, Stephen

It doesn't look like this function handles Daylight Savings Time, so the UTC conversion is only valid for today's date.

28 Nov 2004 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk dinardo, tony

I get these errors when trying to use this -- it doesnt work:
Error in ==> C:\MATLAB6p1\toolbox\matlab\winfun\winqueryreg.dll
Error in ==> d:\mfiles\functions\date2utc.m
On line 20 ==> n=winqueryreg('name',rk,sk);

Top Tags Applied by Anders
clock, datenum, fun, time utils, utc
Files Tagged by Anders
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Nov 2004 Universal Time Code Converts UTC from and to MATLAB datenum. Author: Anders Björk clock, fun, utc, datenum, time utils, utilities 6 4
  • 2.33333
2.3 | 3 ratings

Contact us at files@mathworks.com