New -alter_date types: a-c , m-c , b-c , c

This commit is contained in:
2013-11-27 09:51:05 +00:00
parent 712ecf55f8
commit 93b2c7e513
5 changed files with 114 additions and 65 deletions

View File

@ -2675,12 +2675,21 @@ int Xorriso_convert_datestring(struct XorrisO *xorriso, char *cmd,
{
int ret;
*t_type= 0;
if(strcmp(time_type, "a")==0)
(*t_type)|= 1;
else if(strcmp(time_type, "a-c")==0)
(*t_type)|= 1 | 256;
else if(strcmp(time_type, "m")==0)
(*t_type)|= 4;
else if(strcmp(time_type, "m-c")==0)
(*t_type)|= 4 | 256;
else if(strcmp(time_type, "b")==0)
(*t_type)|= 5;
else if(strcmp(time_type, "b-c")==0)
(*t_type)|= 5 | 256;
else if(strcmp(time_type, "c")==0)
(*t_type)|= 2 | 256;
else {
sprintf(xorriso->info_text, "%s: Unrecognized type '%s'", cmd, time_type);
if(!(flag & 1))