@KniazidisR
You could use this script to get what you want.
Ps. I tested your version on my machine it was wrong with 2 hours. So I guess I use a different time-zone in terminal. So now I need to do some research why this happen 
I would add that the date command in terminal give the right time. In other words the command
mdls -name kMDItemLastUsedDate -raw ~/Desktop/sample.txt return 2 hours before the current time.
UPDATE: Include valueForKey instead of AppleScript record
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions
set thePath to POSIX path of (choose file)
((its resourceValuesAndKeys:thePath)'s valueForKey:"NSURLContentAccessDateKey") as date
on resourceValuesAndKeys:thePath
set NSURLResourceKey to {"NSURLIsApplicationKey", ¬
"NSURLAddedToDirectoryDateKey", ¬
"NSURLApplicationIsScriptableKey", ¬
"NSURLAttributeModificationDateKey", ¬
"NSURLCanonicalPathKey", ¬
"NSURLContentAccessDateKey", ¬
"NSURLContentModificationDateKey", ¬
"NSURLContentTypeKey", ¬
"NSURLCreationDateKey", ¬
"NSURLCustomIconKey", ¬
"NSURLDocumentIdentifierKey", ¬
"NSURLEffectiveIconKey", ¬
"NSURLFileAllocatedSizeKey", ¬
"NSURLFileContentIdentifierKey", ¬
"NSURLFileProtectionKey", ¬
"NSURLFileProtectionType", ¬
"NSURLFileResourceIdentifierKey", ¬
"NSURLFileResourceTypeKey", ¬
"NSURLFileSecurityKey", ¬
"NSURLFileSizeKey", ¬
"NSURLGenerationIdentifierKey", ¬
"NSURLHasHiddenExtensionKey", ¬
"NSURLIsAliasFileKey", ¬
"NSURLIsDirectoryKey", ¬
"NSURLIsExcludedFromBackupKey", ¬
"NSURLIsExecutableKey", ¬
"NSURLIsHiddenKey", ¬
"NSURLIsMountTriggerKey", ¬
"NSURLIsPackageKey", ¬
"NSURLIsPurgeableKey", ¬
"NSURLIsReadableKey", ¬
"NSURLIsRegularFileKey", ¬
"NSURLIsSparseKey", ¬
"NSURLIsSymbolicLinkKey", ¬
"NSURLIsSystemImmutableKey", ¬
"NSURLIsUbiquitousItemKey", ¬
"NSURLIsUserImmutableKey", ¬
"NSURLIsVolumeKey", ¬
"NSURLIsWritableKey", ¬
"NSURLKeysOfUnsetValuesKey", ¬
"NSURLLabelColorKey", ¬
"NSURLLabelNumberKey", ¬
"NSURLLinkCountKey", ¬
"NSURLLocalizedLabelKey", ¬
"NSURLLocalizedNameKey", ¬
"NSURLLocalizedTypeDescriptionKey", ¬
"NSURLMayHaveExtendedAttributesKey", ¬
"NSURLMayShareFileContentKey", ¬
"NSURLNameKey", ¬
"NSURLParentDirectoryURLKey", ¬
"NSURLPathKey", ¬
"NSURLPreferredIOBlockSizeKey", ¬
"NSURLQuarantinePropertiesKey", ¬
"NSURLTagNamesKey", ¬
"NSURLThumbnailDictionaryKey", ¬
"NSURLTotalFileAllocatedSizeKey", ¬
"NSURLTotalFileSizeKey", ¬
"NSURLTypeIdentifierKey", ¬
"NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey", ¬
"NSURLUbiquitousItemDownloadRequestedKey", ¬
"NSURLUbiquitousItemDownloadRequestedKey", ¬
"NSURLUbiquitousItemDownloadingErrorKey", ¬
"NSURLUbiquitousItemDownloadingStatusKey", ¬
"NSURLUbiquitousItemDownloadingStatusKey", ¬
"NSURLUbiquitousItemDownloadingStatusKey", ¬
"NSURLUbiquitousItemIsExcludedFromSyncKey", ¬
"NSURLUbiquitousItemIsUploadingKey", ¬
"NSURLUbiquitousItemUploadingErrorKey", ¬
"NSURLUbiquitousItemHasUnresolvedConflictsKey", ¬
"NSURLUbiquitousItemContainerDisplayNameKey", ¬
"NSURLUbiquitousSharedItemOwnerNameComponentsKey", ¬
"NSURLUbiquitousSharedItemCurrentUserPermissionsKey", ¬
"NSURLUbiquitousSharedItemCurrentUserRoleKey", ¬
"NSURLUbiquitousItemIsSharedKey", ¬
"NSURLUbiquitousSharedItemRole", ¬
"NSURLUbiquitousSharedItemPermissions", ¬
"NSURLVolumeAvailableCapacityKey", ¬
"NSURLVolumeAvailableCapacityForImportantUsageKey", ¬
"NSURLVolumeAvailableCapacityForOpportunisticUsageKey", ¬
"NSURLVolumeCreationDateKey", ¬
"NSURLVolumeIdentifierKey", ¬
"NSURLVolumeIsAutomountedKey", ¬
"NSURLVolumeIsBrowsableKey", ¬
"NSURLVolumeIsEjectableKey", ¬
"NSURLVolumeIsEncryptedKey", ¬
"NSURLVolumeIsInternalKey", ¬
"NSURLVolumeIsJournalingKey", ¬
"NSURLVolumeIsLocalKey", ¬
"NSURLVolumeIsReadOnlyKey", ¬
"NSURLVolumeIsRemovableKey", ¬
"NSURLVolumeIsRootFileSystemKey", ¬
"NSURLVolumeLocalizedFormatDescriptionKey", ¬
"NSURLVolumeLocalizedNameKey", ¬
"NSURLVolumeMaximumFileSizeKey", ¬
"NSURLVolumeNameKey", ¬
"NSURLVolumeResourceCountKey", ¬
"NSURLVolumeSupportsAccessPermissionsKey", ¬
"NSURLVolumeSupportsAdvisoryFileLockingKey", ¬
"NSURLVolumeSupportsCasePreservedNamesKey", ¬
"NSURLVolumeSupportsCaseSensitiveNamesKey", ¬
"NSURLVolumeSupportsCompressionKey", ¬
"NSURLVolumeSupportsExclusiveRenamingKey", ¬
"NSURLVolumeSupportsExtendedSecurityKey", ¬
"NSURLVolumeSupportsFileCloningKey", ¬
"NSURLVolumeSupportsFileCloningKey", ¬
"NSURLVolumeSupportsImmutableFilesKey", ¬
"NSURLVolumeSupportsJournalingKey", ¬
"NSURLVolumeSupportsPersistentIDsKey", ¬
"NSURLVolumeSupportsPersistentIDsKey", ¬
"NSURLVolumeSupportsFileProtectionKey", ¬
"NSURLVolumeSupportsRootDirectoryDatesKey", ¬
"NSURLVolumeSupportsSparseFilesKey", ¬
"NSURLVolumeSupportsSwapRenamingKey", ¬
"NSURLVolumeSupportsSymbolicLinksKey", ¬
"NSURLVolumeSupportsVolumeSizesKey", ¬
"NSURLVolumeSupportsZeroRunsKey", ¬
"NSURLVolumeTotalCapacityKey", ¬
"NSURLVolumeURLForRemountingKey", ¬
"NSURLVolumeURLKey", ¬
"NSURLVolumeUUIDStringKey"}
set theURL to current application's |NSURL|'s fileURLWithPath:thePath
set {theResult, theError} to theURL's resourceValuesForKeys:NSURLResourceKey |error|:(reference)
if theResult is missing value then error (theError's localizedDescription() as string)
return theResult
end resourceValuesAndKeys: