# Discourse Units - Convert durations, lengths and masses

**URL:** <https://meta.discourse.org/t/discourse-units-convert-durations-lengths-and-masses/149360>\
**Category:** Theme component\
**Created:** [July 30, 2020, 11:01am UTC](https://meta.discourse.org/t/discourse-units-convert-durations-lengths-and-masses/149360 "2020-07-30T11:01:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
**Post date:** [July 30, 2020, 11:01am UTC](https://meta.discourse.org/t/discourse-units-convert-durations-lengths-and-masses/149360/1 "2020-07-30T11:01:16Z")

</div>

# Discourse Units

`discourse-units` is a theme component that automatically detects and converts durations, lengths and masses between various scales to make them easier to comprehend.

Example:

 ![units_length](https://global.discourse-cdn.com/meta/original/3X/2/c/2c4784106387fd1b50c8aee935b3c38474761c2d.png) ![units_duration](https://global.discourse-cdn.com/meta/original/3X/d/b/db5edf25928fdc23a4b87c19f0f6c0387f341823.png)

The theme component can be found on GitHub:

> **[GitHub - udan11/discourse-units: Convert durations, lengths and other units...](https://github.com/udan11/discourse-units)**
>
> Convert durations, lengths and other units automatically from posts

## How to install it?

> [@Installing a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682):
>
> bookmark This is a guide for installing and managing themes and theme components in Discourse. person_raising_hand Required user level: Administrator Installing and customizing themes can significantly improve the look and feel of your Discourse site. You can easily import and manage themes and their components through the Discourse admin panel. This guide covers: Importing new themes and theme components Adding theme components to a theme Managing automatic updates Additional resourc…

The repository link is:

```plaintext
https://github.com/udan11/discourse-units.git

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-units-convert-durations-lengths-and-masses/149360)._
