unix

package
v0.0.0-...-6a2a004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

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

func Now

func Now() int64

Now returns the current time in seconds since January 1, 1970 UTC.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL