Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:55:51+00:00 2026-05-30T15:55:51+00:00

I have two variables with putdate and puttime(format is HHMMSSTH). These two variables are

  • 0

I have two variables with putdate and puttime(format is HHMMSSTH). These two variables are taken from mqmd header.

<xsl:variable name="putdate">
        <xsl:value-of select="'20051114'"/>
      </xsl:variable>
      <xsl:variable name="puttime">
        <xsl:value-of select="'10594016'"/>
      </xsl:variable>

The format of puttime is HHMMSSTH

HH
Hours (00 to 23)
MM
Minutes (00 to 59)
SS
Seconds (00 to 59)
T
Tenths of a second (0 to 9)
H
Hundredths of a second (0 to 9).

I have a third variable, incrementtime, which is in milliseconds, in this case it is 1990 milliseconds. What I need the xslt to do is add the value 1990 milliseconds to the puttime, I guess the below are the steps

1) Take the 10th value, which is 9(from 1990), then add to puttime's H, which makes it 10594025(9+6=15)
2)Take the 100th value, which is 9(from 1990), then add to puttimes's T, which makes it 10594115(9+2=11)
3)Take the 1000th value, which is 1(from 1990), then add to puttime's SS, which makes it 10594215

The resultant time is 10594315. The output of the xslt should be “2005-11-14 10:59:42:15″(In GMT actually), converted to Mountain Time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:55:52+00:00Added an answer on May 30, 2026 at 3:55 pm

    XSLT 1.0 does not have any built-in support for time values. To be able to add to time values, you have to implement all the overflow logic yourself.

    • Fractions ≥ 100 ⇒ Increment seconds
    • Seconds ≥ 60 ⇒ Increment minutes
    • Minutes ≥ 60 ⇒ Increment hours
    • Hours ≥ 24 ⇒ Increment days
    • Days ≥ 28, 29, 30 or 31 ⇒ Increment months
    • Months ≥ 12 ⇒ Increment years

    And then you also have to handle DST rules, or the value will be messed up when the switch date is passed. If you do manage to implement it, it will end up being a huge, unmaintainable chunk of code.

    In XSLT 2.0 you have the xs:dateTime type (and similar) that can do the calculations for you. It would be much simpler to do it in XSLT 2.0, or even an imperative programming language (Java, C#, Python, etc.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables --> Variables (id, name) and Variable_Entries (id, var_id, value). I
I have two variables MAX_TABLE_ID INTEGER; NEXT_TABLE_ID INTEGER; I'm reading values into these and
Suppose we have two variables that we wish to build a model from: set.seed(10239)
From previous queries, I have two variables. The first: <list> <item>a</item> <item>b</item> <item>a</item> <item>c</item>
Is it possible to have two different variables in with the same name in
I have anonymous type variable which i am populating like that(i have two variables
I have two variables in bash that complete the name of another one, and
i have two variables in a SSIS package Var1 and Var2. Both of these
I have two variables, key and value , and I want to add them
I have two variables: char charTime[] = TIME; char buf[] = SOMETHINGELSE; I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.