add 10 minutes?

A swapping-ground for Regular Expression syntax

add 10 minutes?

Postby kolumnen » Sat Sep 01, 2012 1:16 pm

I have filenames a la

2012-07-01 18.05 name
2012-07-01 18.05 1 name
2012-07-01 18.05 2 name
and
2012-07-01 18.05.12 name
2012-07-01 18.05.23 1 name
2012-07-01 18.05.56 2 name

Please, if there is someone very nice and clever reading: is there any way to add 10 minutes to the time, at least maybe for times up to hh.49 ? I don't get a start with this task at all, stupidly :(

Thanks for any help, please teach me.
kolumnen
 
Posts: 1
Joined: Sat Sep 01, 2012 1:12 pm

Re: add 10 minutes?

Postby Stefan » Sat Sep 01, 2012 3:35 pm

I think we can't do that here.

And this would not be an easy task.
You can add 10 minutes e.g. to
2012-07-01 18.05 name

to get
2012-07-01 18.15 name

- -

But what is with file names like
2012-07-01 18.55 name ?

You will get
2012-07-01 18.65 name

- -

Even worse with
2012-07-01 23.55 name ;.)

- -

So you will need an script to do all the math.

- -

Maybe the other way around?
From where comes your file names?
If they came from meta tags you are in luck because there are many tools to adjust them, and then use them to create an new file name.


If you have to deal with the strings from your file names as with your examples,... we have to use an other renamer with scripting support.


.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to Regular Expressions