# Additional log "time" features - any interest?

**URL:** <https://farmos.discourse.group/t/additional-log-time-features-any-interest/519>\
**Category:** Using farmOS\
**Created:** [October 17, 2020, 4:48pm UTC](https://farmos.discourse.group/t/additional-log-time-features-any-interest/519 "2020-10-17T16:48:47Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)\
**Post date:** [April 6, 2023, 3:03pm UTC](https://farmos.discourse.group/t/additional-log-time-features-any-interest/519/21 "2023-04-06T15:03:59Z")

</div>

> [@mstenta](#):
>
> To be clear, the changes in [Time quantities [#3196844] | Drupal.org](https://www.drupal.org/project/farm/issues/3196844) are specifically for USER time tracking. It introduces a new Quantity type with a user reference field. This field is not required, so in theory you could use it for non-user time tracking, but that’s not what it’s intended for. The “start” and “stop” time fields are hidden from the user and are only used to generate the “total” time (aka the quantity `value`) anyway. They are only their to aid in future “punch in/out” UI/UX functionality, which could also be handled outside of farmOS in a client-side app like Field Kit or Asset Link.
> 
> For tracking ground cover / solarization / etc I would probably suggest just using the existing `standard` quantity with a `measure` of `time` and develop your own convention around it.

I’m imagining there are probably lots of scenarios where capturing the start and/or stop time in conjunction with a “duration” value would be useful. I wonder if there is an even simpler version of this change that doesn’t try and bake any of that time tracking convention into the farmOS UI to start, but just adds the start/end time (visible) fields to the new “Time” quantity?

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [April 6, 2023, 3:50pm UTC](https://farmos.discourse.group/t/additional-log-time-features-any-interest/519/22 "2023-04-06T15:50:15Z")

</div>

Yea agreed - although it feels a bit weird to me to use a single log for long-term things like covers. I personally would have two logs - one for when I applied a cover, and one for when I removed it. Similar to seeding a cover crop, and then terminating it. But I see the appeal of using a single log for simplicity, so that could certainly be a local convention as well.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [April 6, 2023, 3:53pm UTC](https://farmos.discourse.group/t/additional-log-time-features-any-interest/519/23 "2023-04-06T15:53:12Z")

</div>

As for start/stop time and duration… one important question is: what happens if they start/stop multiple times? Looking at other “time tracking” systems, they generally store a single “duration” as the canonical measurement. So if you start the timer and stop it an hour later, the duration is 1 hour. If you then start it again, and stop it again after another hour, the duration is 2 hours. That is how I’ve been thinking about the `time` quantity, and why the start/stop fields were hidden.

[Previous page](https://farmos.discourse.group/t/additional-log-time-features-any-interest/519.md?page=1)
