# How can I check my total amount of time spent for EVE Online

**URL:** <https://forums.eveonline.com/t/how-can-i-check-my-total-amount-of-time-spent-for-eve-online/320122>\
**Category:** General Discussion\
**Created:** [July 16, 2021, 8:06am UTC](https://forums.eveonline.com/t/how-can-i-check-my-total-amount-of-time-spent-for-eve-online/320122 "2021-07-16T08:06:43Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Lara\_Agnon](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/lara_agnon/32/377122_2.png) [@Lara\_Agnon](https://forums.eveonline.com/u/Lara_Agnon)\
**Post date:** [July 17, 2021, 11:33am UTC](https://forums.eveonline.com/t/how-can-i-check-my-total-amount-of-time-spent-for-eve-online/320122/14 "2021-07-17T11:33:25Z")

</div>

Interesting question… do you leave your logs forever like I do? Then a small script might work.

For example on Windows you might use Powershell. I only want 2021 here:

```auto
$datetimeregex = '\d{4}.\d{2}.\d{2}\s+\d{2}:\d{2}:\d{2}'
$datetimeformat = "yyyy.MM.dd HH:mm:ss"
$filefilteryear = "2021"
$f =Get-ChildItem ([environment]::getfolderpath("mydocuments") + "\EVE\logs\Gamelogs\$filefilteryear" + "*.txt" )
$played = New-TimeSpan
foreach ($l in $f) {
$a = Get-Content($l)
try {
$start = [dateTime]::ParseExact((($a[3] | select-string -Pattern $datetimeregex -AllMatches ).matches.value),$datetimeformat,$null)
$end = [dateTime]::ParseExact((($a[$a.count-1] | select-string -Pattern $datetimeregex -AllMatches ).matches.value),$datetimeformat,$null)
$played += New-TimeSpan -Start $start -End $end
} 
catch {}
}
$played

```

Not too bad for me:  
Days : 13  
Hours : 19  
Minutes : 57  
Seconds : 13  
Milliseconds : 0  
Ticks : 11950330000000  
TotalDays : 13.831400462963  
TotalHours : 331.953611111111  
TotalMinutes : 19917.2166666667  
TotalSeconds : 1195033  
TotalMilliseconds : 1195033000

---

_[View the full topic](https://forums.eveonline.com/t/how-can-i-check-my-total-amount-of-time-spent-for-eve-online/320122)._
