annotate toolboxes/bioakustik_tools/conversion/hhmmss_to_s.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function out=hhmmss_to_s(in)
wolffd@0 2
wolffd@0 3 h = sscanf(substr(in,0,2),'%d');
wolffd@0 4 m = sscanf(substr(in,2,2),'%d');
wolffd@0 5 s = sscanf(substr(in,4,2),'%d');
wolffd@0 6
wolffd@0 7 out=h*3600+m*60+s;