parseTimeString converts a decimal string number of milliseconds elapsed since January 1, 1970 UTC into a time.Time and stores it in the modTime variable.
(timeString string)
| 1896 | // elapsed since January 1, 1970 UTC into a time.Time and stores it in |
| 1897 | // the modTime variable. |
| 1898 | func (o *Object) parseTimeString(timeString string) (err error) { |
| 1899 | if timeString == "" { |
| 1900 | return nil |
| 1901 | } |
| 1902 | modTime, err := parseTimeStringHelper(timeString) |
| 1903 | if err != nil { |
| 1904 | fs.Debugf(o, "Failed to parse mod time string %q: %v", timeString, err) |
| 1905 | return nil |
| 1906 | } |
| 1907 | o.modTime = modTime |
| 1908 | return nil |
| 1909 | } |
| 1910 | |
| 1911 | // ModTime returns the modification time of the object |
| 1912 | // |