Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a number representing seconds to a quantity of time in an appropriate unit
Convert a number of seconds into a Quantity object:
In[1]:= |
|
Out[1]= |
|
Convert a Quantity object representing time into an easier-to-read unit:
In[2]:= |
|
Out[2]= |
|
In[3]:= |
|
Out[3]= |
|
For symbolic values, the result is just a Quantity of seconds:
In[4]:= |
|
Out[4]= |
|
In[5]:= |
|
Out[5]= |
|
By default, SecondsToQuantity can return MixedUnit in the output:
In[6]:= |
|
Out[6]= |
|
Get non-mixed units instead:
In[7]:= |
|
Out[7]= |
|
Improve the readability of the output for functions that return time as a number of seconds:
In[12]:= |
|
Out[12]= |
|
In[13]:= |
|
Out[13]= |
|
Units must be compatible:
In[14]:= |
|
Out[14]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License