Posts

Showing posts from June, 2014

For review

https://play.google.com/store/apps/details?id=pl.planmieszkania.android

For review

https://play.google.com/store/apps/details?id=se.inard.fp

For review

https://play.google.com/store/apps/details?id=com.construireonline.virtual.plan
Using a most excellent tool from (den4b called Renamer) -  pascal for determining either younger created date or modified and use that for the date time stamp.

var
  DateTime: TDateTime;

begin
  (*Sometimes saveas created a modified date which is younger than the Created date, use the youngest of the two*)
  if FileTimeCreated(FilePath) < FileTimeModified(FilePath) then
      DateTime := FileTimeCreated(FilePath)
  else
      DateTime := FileTimeModified(FilePath);

  (*SET THE FILENAME YYYY-MM-DD_HHMMa/p Plus the original filename*)
  FileName :=  FormatDateTime('yyyy-mm-dd_hhmm', DateTime) + FormatDateTime('a/p', DateTime)+ '-' + WideExtractBaseName(FileName) + WideExtractFileExt(FileName);
end.

Working with 2014-06-14-1506p here is a helpful Regexp to reorder it

Using a most excellent tool from (den4b called Renamer) - one of the few tools I happily purchased and want to promote it!

The regular expression to rearrange the date (helpful for date-stamping files) is:

(.*)([0-9]{4}[-_]{0,1}[0-1][0-9][-_]{0,1}[0-3][0-9])[-_]{0,1}([0-2][[0-9][0-5][0-9][a,p]{0,1}){0,1}[-]{0,1}(.*)
---1-----------------------------------------------2_________-------------------------------------3________----4

then it can be easily reordered:
$2-$3-$1-$4

For those of you unfamiliar with REGEX or ReGularEXpressions- it breaks down like this:


(.*)  =  $1will match zero or more of any charactersBy enclosing it in parenthesis () it becomes a sub expression. Since it is the first subexpression it can be referenced to be reordered with $1 in Renamer.(   =  left parenthesis start of the second expression  $2  for the year-month-dayleft parenthesis is the the start of the next expression to Capture. If the parenthesis weren't there the characters would match and be lost[0-9]{4}…

More ARCH language : ) Sagitta definition, the height, width, radius of an arc - Math Open Reference