utility.go: Added function comment. Formatted file.

This commit is contained in:
Dustin Oprea 2019-01-03 19:31:17 -05:00
parent eb7eb2b610
commit 8d79b03fc5

View File

@ -1,10 +1,10 @@
package exif package exif
import ( import (
"fmt"
"bytes" "bytes"
"strings" "fmt"
"strconv" "strconv"
"strings"
"time" "time"
"github.com/dsoprea/go-logging" "github.com/dsoprea/go-logging"
@ -67,6 +67,7 @@ func DumpBytesClauseToString(data []byte) string {
return b.String() return b.String()
} }
// ParseExifFullTimestamp parses dates like "2018:11:30 13:01:49".
func ParseExifFullTimestamp(fullTimestampPhrase string) (timestamp time.Time, err error) { func ParseExifFullTimestamp(fullTimestampPhrase string) (timestamp time.Time, err error) {
defer func() { defer func() {
if state := recover(); state != nil { if state := recover(); state != nil {