diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-15 19:35:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-15 19:35:07 +0100 |
commit | afb3823b5cd5175271c36fb5c5f3fbeaa64d6498 (patch) | |
tree | 1c6440b7d19dca819e0f3af14931f300b837ec4f | |
parent | add readme (diff) | |
download | blueshift-afb3823b5cd5175271c36fb5c5f3fbeaa64d6498.tar.gz blueshift-afb3823b5cd5175271c36fb5c5f3fbeaa64d6498.tar.bz2 blueshift-afb3823b5cd5175271c36fb5c5f3fbeaa64d6498.tar.xz |
get current time
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-x | src/__main__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/__main__.py b/src/__main__.py index 8cf70ae..d6ace7c 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import os +import datetime from colour import * from curve import * @@ -111,3 +112,7 @@ for file in ('$XDG_CONFIG_HOME/%/%rc', '$HOME/.config/%/%rc', '$HOME/.%rc', '/et exec(code, globals) break +## Get the current time +now = datetime.datetime.now() # .year, .month, .day, .hour, .minute, .second +weekday = now.isocalendar()[2] + |