function [ymd,hms]=getgregorian(b)

% monthlab={'Jan','Feb','Mar','Apr','May','Jun','Jul',...
% 		'Aug','Sep','Oct','Nov','Dec'};
dummy=gregorian(b);
for i=1:6,
	if dummy(i)<10,
		txt{i}=['0' num2str(dummy(i))];
	else
		txt{i}=num2str(dummy(i));
	end;
end;
ymd=[txt{1} ' - ' txt{2} ' - ' txt{3}];
hms=[txt{4} ' : ' txt{5} ' : ' txt{6}];
% a=[monthlab{dummy(2)} '. ', txt{3} '/',...
%        num2str(dummy(1)), '  ', txt{4},' : ',...
% 	    txt{5},' : ', txt{6},];
return;

