Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions FileHeader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# @Author: Lime
# @Date: 2013-10-28 13:39:48
# @Last Modified by: qkdreyer
# @Last Modified time: 2017-08-14 16:48:32
# @Last Modified by: Yitao
# @Last Modified time: 2019-07-25 17:58:06

import os
import sys
Expand Down Expand Up @@ -288,7 +288,8 @@ def get_time(path):
else:
c_time, m_time = map(
datetime.fromtimestamp, (stat.st_ctime, stat.st_mtime))

if sublime.platform() == 'osx':
c_time = datetime.fromtimestamp(stat.st_birthtime)
return c_time, m_time


Expand Down Expand Up @@ -854,3 +855,4 @@ def on_activated(self, view):
settings.set('c_time', pickle.dumps(c_time))

self.insert_template(view, True)