From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- .../bldviewer/templatetags/simple_projecttags.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bitbake/lib/toaster/bldviewer/templatetags/simple_projecttags.py (limited to 'bitbake/lib/toaster/bldviewer/templatetags/simple_projecttags.py') diff --git a/bitbake/lib/toaster/bldviewer/templatetags/simple_projecttags.py b/bitbake/lib/toaster/bldviewer/templatetags/simple_projecttags.py new file mode 100644 index 0000000000..1b8953c69d --- /dev/null +++ b/bitbake/lib/toaster/bldviewer/templatetags/simple_projecttags.py @@ -0,0 +1,29 @@ +# +# ex:ts=4:sw=4:sts=4:et +# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- +# +# BitBake Toaster Implementation +# +# Copyright (C) 2013 Intel Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +from datetime import datetime +from django import template + +register = template.Library() + +@register.simple_tag +def time_difference(start_time, end_time): + return end_time - start_time -- cgit v1.2.3-54-g00ecf