photoprism/pkg/report/timestamp.go
Michael Mayer 713593da4e Auth: Add CLI command to create access tokens for apps #782 #808 #3943
You can now run "photoprism auth add" to create new client access tokens
that allow external applications to use the built-in REST API.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-05 16:31:07 +01:00

18 lines
344 B
Go

package report
import (
"time"
"github.com/photoprism/photoprism/pkg/txt"
)
// DateTime formats a time pointer as a human-readable datetime string.
func DateTime(t *time.Time) string {
return txt.DateTime(t)
}
// UnixTime formats a unix time as a human-readable datetime string.
func UnixTime(t int64) string {
return txt.UnixTime(t)
}