713593da4e
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>
17 lines
344 B
Go
17 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)
|
|
}
|