c++ - How to change time format in NetBeans template -
i have specific c++ project, , use netbeans.
reason because need have specific timestamps, , found netbeans templates great tool inserting automatic header relevant stuff.
i manage set nicely, can't figure out how set time format in header template.
currently shows this:
created on april 6, 2017, 2:18 pm
but since work in central europe, need 24h hour format have like
created on 06.04.2017. @ 14:18
i found on how change date format here, doesn't work times reason.
i tried using freemaker's template language reference, created variable time looks this:
<#assign datetime = .now> <#assign time = datetime?time> ${time?iso("europe/zagreb")}
but still didn't change anything.
now template looks this:
// -*- c++ -*- <#assign licensefirst = "/*"> <#assign licenseprefix = " * "> <#assign licenselast = " */"> <#assign adatetime = .now> <#assign time = adatetime?time> <#include "${project.licensepath}"> /* * file: ${name}.${extension} * author: ${user} * * created on ${date} @ ${time?iso("europe/zagreb")} */ #ifndef ${guard_name} #define ${guard_name} #endif /* ${guard_name} */
is possible changed @ all, , how?
any appreciated.
Comments
Post a Comment