mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
First finished implementation of XMP dates
This commit is contained in:
@@ -82,8 +82,10 @@ let strftime_pairs =
|
||||
"%p", strf_p; "%S", strf_S; "%T", strf_T; "%u", strf_u;
|
||||
"%w", strf_w; "%Y", strf_Y; "%%", strf_percent]
|
||||
|
||||
let strftime text =
|
||||
let time = Unix.localtime (Unix.gettimeofday ()) in
|
||||
let strftime ?time text =
|
||||
let time =
|
||||
match time with None -> Unix.localtime (Unix.gettimeofday ()) | Some t -> t
|
||||
in
|
||||
let text = ref text in
|
||||
iter
|
||||
(fun (search, replace_fun) ->
|
||||
|
Reference in New Issue
Block a user