aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index 563de48..06b483c 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -762,6 +762,25 @@ string program_name = "spine";
bits, os,
);
}
+ @trusted string name_and_version() {
+ return format("%s-%s", name, ver);
+ }
+ @trusted string name_version_and_compiler() {
+ return format("%s-%s (%s)", name, ver, compiler);
+ }
+ @safe auto time_output_generated() {
+ auto _st = Clock.currTime(UTC());
+ auto _t = TimeOfDay(_st.hour, _st.minute, _st.second);
+ auto _time = _st.year.to!string
+ ~ "-" ~ _st.month.to!int.to!string // prefer as month number
+ ~ "-" ~ _st.day.to!string
+ ~ " [" ~ _st.isoWeek.to!string ~ "/" ~ _st.dayOfWeek.to!int.to!string ~ "]"
+ ~ " - " ~ _t.toISOExtString
+ // ~ " " ~ _st.hour.to!string ~ ":" ~ _st.minute.to!string ~ ":" ~ _st.second.to!string
+ ~ " UTC";
+ return _time;
+ // return _st.toISOExtString();
+ }
}
return ProgramInfo();
}
@@ -978,7 +997,7 @@ string program_name = "spine";
&& _opt_action.abstraction) {
/+ ↓ output hub +/
if (!(_opt_action.skip_output)) {
- outputHubInitialize!()(_opt_action);
+ outputHubInitialize!()(_opt_action, program_info);
}
if (_opt_action.parallelise) { // see else
import std.parallelism;