English 中文(简体)
转向配对时间
原标题:Converting to matlab time

我及时描述了格式15:10:21,我也知道日期,即2011-08-05。

从这一数据中(自1900年以来的几天内)获得实验室时间的最佳途径是什么?

最佳回答

http://www.mathwork.com/help/techdoc/ref/datenum.html。

>> num = datenum( 2011-08-05 15:10:21 )

num =

   7.3472e+05

>> datestr(num)

ans =

05-Aug-2011 15:10:21

“工作时间”实际上自1月1日凌晨:

>> datestr(0)

ans =

00-Jan-0000
问题回答

暂无回答




相关问题
Change the date format in kibana

I am working for my internship on the implementation of the ElasticSearch family (ElasticSearch+ Kibana+ logstash). Here is my question: I have a field "@ timestamp" with the following format: 2014-05-...

Quickly getting to YYYY-mm-dd HH:MM:SS in Perl

When writing Perl scripts I frequently find the need to obtain the current time represented as a string formatted as YYYY-mm-dd HH:MM:SS (say 2009-11-29 14:28:29). In doing this I find myself taking ...

Sorting by unknown column type in mysql

So I ve got a users table; storing things like username, email, etc. I then have a user_settings table. Instead of standard columns like timestamp_logged_in, profile_views, etc., I have it organized ...

timestamp date today

Hi guys could you please help me with this. I know it is silly but can t find unswer anywhere: I have a query that shows events from the today time_stamp but I want to include today as well. How do I ...

connection time zone issue with jOra eclipse plugin

I started using the jOra eclipse plugin. The plugin seems pretty robust and I m hoping to stop using SQLDeveloper for 95% of my database needs. Many of our tables have columns of type TIMESTAMP ...

How to get a UNIVERSAL Windows batch file timestamp

I m having trouble generating a timestamp in a Windows batch file, because I get diferent date formats on different Windows versions. My machine: >echo %date% >Tue 11/17/2009 Friends machine: ...

热门标签