Duration formats supported in Zoho DataPrep

Duration formats supported in Zoho DataPrep

Duration is the difference between two time values. A duration format can be formed using different format strings such as D, H, SSSSSS, etc.  

Zoho DataPrep supports the following format strings:

Format String




Indicates the Days

0 to 36500000


Indicates the Hours 

00 to 23

Note: The range for duration in hours is 0 to 876000000


Indicates the Minutes

00 to 59


Indicates the Seconds

00 to 59

Note: The range for duration in seconds is 0 to 3153600000000


Indicates the Milliseconds

00 to 999


Indicates the Microseconds

0 to 999999

You can also construct your own duration formats using the formats strings and delimiters. You can select a predefined format, choose to modify it, or create formats in the Change duration format, and Change data type transforms. You can use the % symbol to separate the format strings.

For example, %D.%H:%m:%s.%SSSSSS where %D is number of days, %H is number of hours, %m is number of minutes, %s is number of seconds, and %SSSSSS is number of microseconds. You can add any literals and delimiters in the duration formats. For example, in the duration, 201 jours 11.12.21, the days literal is used in French and a dot(.) is used as a delimiter.

Supported duration formats

Zoho DataPrep supports a wide range of duration formats. Here are a few examples of the supported duration formats in DataPrep.

Duration only








201 11:12:21.000001

%H hrs %m mins %s secs

11 hrs 12 mins 21 secs

%H hours %m minutes %s seconds %SSSSSS

1 hours 2 minutes 1 seconds 910001







Duration with days



%D %H:%m:%s

201 11:12:21

%D %H:%m:%s.%SSS

201 11:12:21.91

%D days %H:%m:%s.%SSSSSS

201 days 11:12:21.000111

%D days %H hrs %m mins %s secs

201 days 11 hrs 12 mins 21 secs

%D days %H hrs %m mins %s secs %SSS

10092 days 11 hrs 12 mins 21 secs 901

%D days %H hours %m minutes %s seconds %SSSSSS

12 days 1 hours 2 minutes 1 seconds 910001

%D days %H hours %m minutes %s seconds %SSS

12 days 1 hours 2 minutes 1 seconds 910

Note: Only the predefined formats displayed under the Duration only and Duration with days sections will be auto inferred on import. However, you can create your own formats using the available formats strings. Click here to know how to create duration formats.

Invalid duration formats

A duration format is invalid if one or more of the following conditions are not met:
  1. The format cannot be empty. 
  2. You can use a string only once in a format. 
    1. For example, in the duration format, 301.201.21:12:00, the duration is repeated twice which makes it an invalid duration format. 
  3. You can use either microsecond or millisecond in a duration format and not both.
    1. For example, in the duration format, 12 days 1 hours 2 minutes 1.911 seconds 1.910001 seconds, both microseconds and milliseconds are used which renders it an invalid duration format.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now

            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION

                        Still can't find what you're looking for?

                        Write to us:  support@zohoforms.com



                          Manage your brands on social media

                              Zoho Marketing Automation

                                Zoho Sheet Resources


                                    Zoho Forms Resources

                                      Secure your business
                                      communication with Zoho Mail

                                      Mail on the move with
                                      Zoho Mail mobile application

                                        Stay on top of your schedule
                                        at all times

                                        Carry your calendar with you
                                        Anytime, anywhere

                                              Zoho Sign Resources

                                                Sign, Paperless!

                                                Sign and send business documents on the go!

                                                Get Started Now

                                                        Zoho TeamInbox Resources

                                                                Zoho DataPrep Resources

                                                                  Zoho DataPrep Demo

                                                                  Get a personalized demo or POC

                                                                  REGISTER NOW

                                                                    Design. Discuss. Deliver.

                                                                    Create visually engaging stories with Zoho Show.

                                                                    Get Started Now

                                                                                          • Related Articles

                                                                                          • Data types supported in Zoho DataPrep

                                                                                            Data type is a key attribute associated with a column using which the valid and invalid data are classified and data quality is calculated. In Zoho DataPrep, there are a variety of data types to suit your needs, but they are all built upon a few ...
                                                                                          • Change duration format

                                                                                            Duration is the difference between two time values. DataPrep offers a wide range of duration formats to choose from. You can choose to apply any of the predefined duration format from the template. To change the duration format 1. Right-click the ...
                                                                                          • Date and time formats supported in Zoho DataPrep

                                                                                            Datetime A datetime format is formed using various format strings such as yyyy, dd, mm, etc. All the supported format strings are incorporated into the date picker feature of DataPrep. You can simply click to select the required element to form or ...
                                                                                          • Units supported for currency datatype

                                                                                            Currency is a data type that is derived from the decimal data type. For example, India uses the currency, Indian Rupee. In Zoho DataPrep, there are a variety of data types to suit your needs. Click here to know more about the data types supported in ...
                                                                                          • Ruleset in Zoho DataPrep

                                                                                            This page covers the following sections: What is a Ruleset? Data source settings Ruleset operations Options with individual rules Ruleset Templates What is a Ruleset? Each transform applied on the dataset is stored in DataPrep as a rule, in order of ...
                                                                                          Wherever you are is as good as
                                                                                          your workplace



                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.


                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.


                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.

                                                                                            CRM Tips

                                                                                            Make the most of Zoho CRM with these useful tips.

                                                                                              Zoho Show Resources