Documentation ¶
Overview ¶
Package unix provides constants and functions for Unix timestamps.
Copyright (c) 2018 - 2024 PhotoPrism UG. All rights reserved.
This program is free software: you can redistribute it and/or modify it under Version 3 of the GNU Affero General Public License (the "AGPL"): <https://docs.photoprism.app/license/agpl> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. The AGPL is supplemented by our Trademark and Brand Guidelines, which describe how our Brand Assets may be used: <https://www.photoprism.app/trademark>
Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello.
Additional information can be found in our Developer Guide: <https://docs.photoprism.app/developer-guide/>
Index ¶
Constants ¶
View Source
const Day = Hour * 24
Day is one day in seconds.
View Source
const Hour = Minute * 60
Hour is one hour in seconds.
View Source
const Minute int64 = 60
Minute is one minute in seconds.
View Source
const Month = Day * 31
Month is about one month in seconds.
View Source
const Week = Day * 7
Week is one week in seconds.
View Source
const Year = Day * 365
Year is 365 days in seconds.
View Source
const YearInt = int(Year)
YearInt is Year specified as integer.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.