Home > omviz > greg2str.m

greg2str

PURPOSE ^

GREG2STR Converts Gregorian time array to String

SYNOPSIS ^

function [str]=greg2str(gtime)

DESCRIPTION ^

 GREG2STR Converts Gregorian time array to String
  Usage:
    [str]=greg2str(gtime)
 convert gregorian time to string for display (don't include seconds)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [str]=greg2str(gtime)
0002 % GREG2STR Converts Gregorian time array to String
0003 %  Usage:
0004 %    [str]=greg2str(gtime)
0005 % convert gregorian time to string for display (don't include seconds)
0006 
0007 % Rich Signell (rsignell@usgs.gov)
0008 str=sprintf('%4.4d/%2.2d/%2.2d %2.2d:%2.2d',gtime(1:5));
0009

Generated on Thu 01-Dec-2005 08:50:35 by m2html © 2003