<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Hledger.Data.TimeLog</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_Hledger-Data-TimeLog.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hledger-Data-TimeLog.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hledger-lib-0.14: Reusable types and utilities for the hledger accounting tool and financial apps in general.</p></div><div id="content"><div id="module-header"><p class="caption">Hledger.Data.TimeLog</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A <code><a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a></code> is a clock-in, clock-out, or other directive in a timelog file (see timeclock.el or the command-line version). These can be converted to <code>Transactions</code> and queried like a ledger. </p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:timeLogEntriesToTransactions">timeLogEntriesToTransactions</a> :: <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> -> [<a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a>] -> [<a href="Hledger-Data-Types.html#t:Transaction">Transaction</a>]</li><li class="src short"><a href="#v:entryFromTimeLogInOut">entryFromTimeLogInOut</a> :: <a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a> -> <a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a> -> <a href="Hledger-Data-Types.html#t:Transaction">Transaction</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:timeLogEntriesToTransactions" class="def">timeLogEntriesToTransactions</a> :: <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> -> [<a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a>] -> [<a href="Hledger-Data-Types.html#t:Transaction">Transaction</a>]<a href="src/Hledger-Data-TimeLog.html#timeLogEntriesToTransactions" class="link">Source</a></p><div class="doc"><p>Convert time log entries to journal transactions. When there is no clockout, add one with the provided current time. Sessions crossing midnight are split into days to give accurate per-day totals. </p></div></div><div class="top"><p class="src"><a name="v:entryFromTimeLogInOut" class="def">entryFromTimeLogInOut</a> :: <a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a> -> <a href="Hledger-Data-Types.html#t:TimeLogEntry">TimeLogEntry</a> -> <a href="Hledger-Data-Types.html#t:Transaction">Transaction</a><a href="src/Hledger-Data-TimeLog.html#entryFromTimeLogInOut" class="link">Source</a></p><div class="doc"><p>Convert a timelog clockin and clockout entry to an equivalent journal transaction, representing the time expenditure. Note this entry is not balanced, since we omit the "assets:time" transaction for simpler output. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>