For Programmers: Free Programming Magazines  


Home > Archive > Matlab > August 2007 > time2str obsolete in next version?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author time2str obsolete in next version?
Allen

2007-08-13, 10:25 pm

Hi everyone,

I ran some .m files I created a while back and up popped a few errors
related to the time2str function in the mapping toolbox. The error says:

"The following functions to convert between time units and encodings
will be removed from a future release of Mapping Toolbox" (and includes
time2str among others... then they say for compatibility:

"These functions remain available, but when they are invoked now issue
warnings that they are obsolete."

So, if they're being removed, what are they to be replaced with?! I
like writing out some of my data to text files, and include this
function in order to output the creation date in a file-header.

Thanks for your thoughts, guys! [feel free to tell me I'm crazy] :)
-Allen
Walter Roberson

2007-08-14, 4:51 am

In article <f9r1jf$j6b$1@news.ks.uiuc.edu>,
Allen <ajhalldeleteme@gmail.com> wrote:

>"The following functions to convert between time units and encodings
>will be removed from a future release of Mapping Toolbox" (and includes
>time2str among others... then they say for compatibility:


>So, if they're being removed, what are they to be replaced with?!


datenum()

You may have to use num2str() to convert some components
before sending them to datenum().
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
Titus

2007-08-14, 4:51 am


"Allen" <ajhalldeleteme@gmail.com> schrieb im Newsbeitrag
news:f9r1jf$j6b$1@news.ks.uiuc.edu...
> Hi everyone,
>
> I ran some .m files I created a while back and up popped a few errors
> related to the time2str function in the mapping toolbox. The error says:
>
> "The following functions to convert between time units and encodings will
> be removed from a future release of Mapping Toolbox" (and includes
> time2str among others... then they say for compatibility:
>
> "These functions remain available, but when they are invoked now issue
> warnings that they are obsolete."
>
> So, if they're being removed, what are they to be replaced with?! I like
> writing out some of my data to text files, and include this function in
> order to output the creation date in a file-header.
>
> Thanks for your thoughts, guys! [feel free to tell me I'm crazy] :)
> -Allen


Hi Allen,

usually when this happens, the first lines of the help should indicate what
replacements are to be used (or in the release notes):

help time2str

TIME2STR Format time strings

TIME2STR is obsolete and will be removed in the next release. See
DATESTR for an alternative.

Titus


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com