Skip to content

Commit

Permalink
Merge pull request #68 from compufox/minute-support
Browse files Browse the repository at this point in the history
fixed minutes not being utilized in time info calculation
  • Loading branch information
mczachurski committed Feb 16, 2023
2 parents 44e8ece + ed0b9ea commit baa5fa0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public class ImageMetadataGenerator {
let timeItem = TimeItem()
timeItem.imageIndex = self.getImageIndex(fileName: item.fileName)
let hour = Calendar.current.component(.hour, from: time)
timeItem.time = Double(hour) / 24.0
let min = Calendar.current.component(.minute, from: time)
timeItem.time = (Double(hour) / 24.0) + (Double(min) / 60.0 / 24.0)

if sequenceInfo.timeItems == nil {
sequenceInfo.timeItems = []
Expand Down

0 comments on commit baa5fa0

Please sign in to comment.