######################################################################
# Name: XltFormatDateTime
# Purpose: Format Date & Time eg 20.12.0512:15 to 200512201215.
#
# UPoC type: xltp
# Args: none
# Notes: All data is presented through special variables. The initial
# upvar in this proc provides access to the required variables.
#
# This proc style only works when called from a code fragment
# within an XLT.
#
# v1 DTH 20/12/2005 Initial Version.
proc XltFormatDateTime {} {
upvar xlateInVals xlateInVals
xlateOutVals xlateOutVals
set x [lindex $xlateInVals 0]
set Dtc 20
set Dtd [string range $x 0 1]
set Dtm [string range $x 3 4]
set Dty [string range $x 6 7]
set Tmh [string range $x 8 9]
set Tmm [string range $x 11 12]
set x $Dtc$Dty$Dtm$Dtd$Tmh$Tmm
echo >$x< set xlateOutVals
}