Revision: a89a80bf5178
Branch: default
Author: Janne Piironen <[email protected]>
Date: Mon Jun 2 13:16:38 2014 UTC
Log: regen
http://code.google.com/p/robotframework/source/detail?r=a89a80bf5178
Modified:
/doc/libraries/DateTime.html
=======================================
--- /doc/libraries/DateTime.html Fri May 30 17:37:34 2014 UTC
+++ /doc/libraries/DateTime.html Mon Jun 2 13:16:38 2014 UTC
@@ -180,7 +180,7 @@
(function(a){var r=a.fn.domManip,d="_tmplitem",q=/^[^<]*(<[\w\W]+>)[^>]*$|
\{\{\! /,b={},f={},e,p={key:0,data:{}},i=0,c=0,l=[];function g(g,d,h,e){var
c={data:e||(e===0||
e===false)?e:d?d.data:{},_wrap:d?d._wrap:null,tmpl:null,parent:d||
null,nodes:[],calls:u,nest:w,wrap:x,html:v,update:t};g&&a.extend(c,g,{nodes:[],parent:d});if(h){c.tmpl=h;c._ctnt=c._ctnt|
|c.tmpl(a,c);c.key=++i;(l.length?f:b)[i]=c}return
c}a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,d){a.fn[f]=function(n){var
g=[],i=a(n),k,h,m,l,j=this.length===1&&this[0].parentNode;e=b||
{};if(j&&j.nodeType===11&&j.childNodes.length===1&&i.length===1){i[d](this[0]);g=this}else{for(h=0,m=i.length;h<m;h++){c=h;k=(h>0?this.clone(true):this).get();a(i[h])[d](k);g=g.concat(k)}c=0;g=this.pushStack(g,f,i.selector)}l=e;e=null;a.tmpl.complete(l);return
g}});a.fn.extend({tmpl:function(d,c,b){return
a.tmpl(this[0],d,c,b)},tmplItem:function(){return
a.tmplItem(this[0])},template:function(b){return
a.template(b,this[0])},domManip:function(d,m,k){if(d[0]&&a.isArray(d[0])){var
g=a.makeArray(arguments),h=d[0],j=h.length,i=0,f;while(i<j&&!(f=a.data(h[i++],"tmplItem")));if(f&&c)g[2]=function(b){a.tmpl.afterManip(this,b,k)};r.apply(this,g)}else
r.apply(this,arguments);c=0;!e&&a.tmpl.complete(b);return
this}});a.extend({tmpl:function(d,h,e,c){var
i,k=!c;if(k){c=p;d=a.template[d]||a.template(null,d);f={}}else
if(!d){d=c.tmpl;b[c.key]=c;c.nodes=[];c.wrapped&&n(c,c.wrapped);return
a(j(c,null,c.tmpl(a,c)))}if(!d)return[];if(typeof h==="function")h=h.call(c|
|{});e&&e.wrapped&&n(e,e.wrapped);i=a.isArray(h)?a.map(h,function(a){return
a?g(e,c,d,a):null}):[g(e,c,d,h)];return
k?a(j(c,null,i)):i},tmplItem:function(b){var c;if(b instanceof
a)b=b[0];while(b&&b.nodeType===1&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode));return
c||p},template:function(c,b){if(b){if(typeof b==="string")b=o(b);else if(b
instanceof a)b=b[0]||{};if(b.nodeType)b=a.data(b,"tmpl")||
a.data(b,"tmpl",o(b.innerHTML));return typeof
c==="string"?(a.template[c]=b):b}return c?typeof
c!=="string"?a.template(null,c):a.template[c]||
a.template(null,q.test(c)?c:a(c)):null},encode:function(a){return(""+a).split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}});a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index,
$value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1)
&& $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else
if(($notnull_1) &&
$1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){b={}},afterManip:function(f,b,d){var
e=b.nodeType===11?a.makeArray(b.childNodes):b.nodeType===1?[b]:[];d.call(f,b);m(e);c++}});function
j(e,g,f){var b,c=f?a.map(f,function(a){return typeof
a==="string"?e.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'"
$2'):a:j(a,e,a._ctnt)}):e;if(g)return
c;c=c.join("");c.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(f,c,e,d){b=a(e).get();m(b);if(c)b=k(c).concat(b);if(d)b=b.concat(k(d))});return
b?b:k(c)}function k(c){var
b=document.createElement("div");b.innerHTML=c;return
a.makeArray(b.childNodes)}function o(b){return new
Function("jQuery","$item","var
$=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{=
$1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|
\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|
\}(?!\}))*?)\))?\s*\}\}/g,function(m,l,k,g,b,c,d){var
j=a.tmpl.tag[k],i,e,f;if(!j)throw"Unknown template tag: "+k;i=j._default||
[];if(c&&!/\w$/.test(b)){b+=c;c=""}if(b){b=h(b);d=d?","+h(d)+")":c?")":"";e=c?b.indexOf(".")>-1?b+h(c):"("+b+").call($item"+d:b;f=c?e:"(typeof("+b+")==='function'?("+b+").call($item):("+b+"))"}else
f=e=i.$1|
|"null";g=h(g);return"');"+j[l?"close":"open"].split("$notnull_1").join(b?"typeof("+b+")!=='undefined'
&&
("+b+")!=null":"true").split("$1a").join(f).split("$1").join(e).split("$2").join(g|
|i.$2||"")+"__.push('"})+"');}return __;")}function
n(c,b){c._wrap=j(c,true,a.isArray(b)?b:[q.test(b)?b:a(b).html()]).join("")}function
h(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function
s(b){var
a=document.createElement("div");a.appendChild(b.cloneNode(true));return
a.innerHTML}function m(o){var
n="_"+c,k,j,l={},e,p,h;for(e=0,p=o.length;e<p;e++){if((k=o[e]).nodeType!==1)continue;j=k.getElementsByTagName("*");for(h=j.length-1;h>=0;h--)m(j[h]);m(k)}function
m(j){var
p,h=j,k,e,m;if(m=j.getAttribute(d)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(p=h.getAttribute(d)));if(p!==m){h=h.parentNode?h.nodeType===11?0:h.getAttribute(d)|
|0:0;if(!(e=b[m])){e=f[m];e=g(e,b[h]||
f[h]);e.key=++i;b[i]=e}c&&o(m)}j.removeAttribute(d)}else
if(c&&(e=a.data(j,"tmplItem"))){o(e.key);b[e.key]=e;h=a.data(j.parentNode,"tmplItem");h=h?h.key:0}if(e){k=e;while(k&&k.key!=h){k.nodes.push(j);k=k.parent}delete
e._ctnt;delete e._wrap;a.data(j,"tmplItem",e)}function
o(a){a=a+n;e=l[a]=l[a]||g(e,b[e.parent.key+n]||e.parent)}}}function
u(a,d,c,b){if(!a)return
l.pop();l.push({_:a,tmpl:d,item:this,data:c,options:b})}function
w(d,c,b){return a.tmpl(a.template(d),c,b,this)}function x(b,d){var
c=b.options||{};c.wrapped=d;return
a.tmpl(a.template(b.tmpl),b.data,c,b.item)}function v(d,c){var
b=this._wrap;return a.map(a(a.isArray(b)?b.join(""):b).filter(d|
|"*"),function(a){return c?a.innerText||a.textContent:a.outerHTML||
s(a)})}function t(){var
b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]);a(b).remove()}})(jQuery);
</script>
<script type="text/javascript">
-libdoc = {"doc":"<p>A test library for manipulating and verifying date and
time values.\x3c/p>\n<p><span class=\"name\">DateTime\x3c/span> is a
standard library of Robot Framework that allows converting date and time
values, adding and subtracting them and verifying variables as date or time
values.\x3c/p>\n<p>This library is new in Robot Framework
2.8.5.\x3c/p>\n<h2 id=\"Table of Contents\">Table of
Contents\x3c/h2>\n<ul>\n<li><a href=\"#Defining%20date%20and%20time\"
class=\"name\">Defining date and time\x3c/a>\x3c/li>\n<li><a
href=\"#Time%20formats\" class=\"name\">Time formats\x3c/a>\x3c/li>\n<li><a
href=\"#Date%20formats\" class=\"name\">Date formats\x3c/a>\x3c/li>\n<li><a
href=\"#Formatted%20timestamps\" class=\"name\">Formatted
timestamps\x3c/a>\x3c/li>\n<li><a href=\"#Millisecond%20handling\"
class=\"name\">Millisecond handling\x3c/a>\x3c/li>\n<li><a
href=\"#Keywords\" class=\"name\">Keywords\x3c/a>\x3c/li>\n\x3c/ul>\n<h2
id=\"Defining date and time\">Defining date and time\x3c/h2>\n<p>The terms
used by this library differ somewhat from those used in Python. In this
library the term <span class=\"name\">time\x3c/span> is used to represent a
period of time measured in hours, minutes, seconds etc. (like Python's
timedelta).\x3c/p>\n<p>On the other hand, <span
class=\"name\">date\x3c/span> represents both date and time of day (like
Python's datetime).\x3c/p>\n<h2 id=\"Time formats\">Time
formats\x3c/h2>\n<p>Time can be input in and converted to following
formats:\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Format
name\x3c/th>\n<th>Example\x3c/th>\n\x3c/tr>\n<tr>\n<td>number\x3c/td>\n<td>3903.0\x3c/td>\n\x3c/tr>\n<tr>\n<td>verbose\x3c/td>\n<td>1hour
5minutes 3seconds\x3c/td>\n\x3c/tr>\n<tr>\n<td>compact\x3c/td>\n<td>1h 5m
3s\x3c/td>\n\x3c/tr>\n<tr>\n<td>clock\x3c/td>\n<td>01:05:03.000\x3c/td>\n\x3c/tr>\n<tr>\n<td>timedelta\x3c/td>\n<td>Python
timedelta object\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Date
formats\">Date formats\x3c/h2>\n<p>Date can be input in and converted to
following formats:\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Format
name\x3c/th>\n<th>Example\x3c/th>\n\x3c/tr>\n<tr>\n<td>timestamp\x3c/td>\n<td>28.05.2014
12:05:03.000\x3c/td>\n\x3c/tr>\n<tr>\n<td>epoch\x3c/td>\n<td>123123123123.0\x3c/td>\n\x3c/tr>\n<tr>\n<td>datetime\x3c/td>\n<td>Python
datetime object\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Formatted
timestamps\">Formatted timestamps\x3c/h2>\n<p><span
class=\"name\">timestamp\x3c/span> strings can have both input and output
formatting specified in formatting directives which are documented in
Python's <a
href=\"https://docs.python.org/2/library/time.html#time.strftime\">time.strftime()
documentation\x3c/a>.\x3c/p>\n<p><b>Note:\x3c/b> The %f directive for
microseconds is not supported anywhere but in the end of a format string
for Python versions < 2.6 and for Jython.\x3c/p>\n<p>Input formatting is
always given as separate parameter (or parameters, if there are many date
inputs) to keywords handling dates. In output formatting however, a colon
character is needed to specify that we want a timestamp with custom
formatting (e.g. 'timestamp:format').\x3c/p>\n<p>If a format is not given
to string input or output in keyword, it is assumed to
be '%Y-%m-%d %H:%M:%S' by default. However, the input is flexible and will
accept any non-digit separators as long as the numbers are in the right
order.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>12:05:03
28.05.2014\x3c/td>\n<td>date_format=%H:%M:%S %m.%d.%Y\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014-05-28
12:05:03\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Add To
Date\x3c/td>\n<td>${ts}\x3c/td>\n<td>1hour\x3c/td>\n<td>timestamp:%H.%M.%S %d-%m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>13.05.03
28-05\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Millisecond
handling\">Millisecond handling\x3c/h2>\n<p>Every keyword in this library
has the option to leave milliseconds out of the result. By default,
milliseconds are kept with every conversion and calculation. If
milliseconds are chosen to be left out the result will be rounded to
nearest second.\x3c/p>","generated":"2014-05-30
20:36:19","inits":[],"keywords":[{"args":"date, time,
result_format=timestamp, exclude_millis=False,
date_format=None","doc":"<p>Add time to a date.\x3c/p>\n<p><span
class=\"name\">date\x3c/span> is a date representation given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the date format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date which is given amount of time in the
future.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${date} =\x3c/td>\n<td>Add To
Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1h\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014.05.28
13:05:03.111\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Add To Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1 year 3
hours\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2015.05.28
15:05:03.111\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Add To Date","shortdoc":"Add time to a
date."},{"args":"time1, time2, result_format=number,
exclude_millis=False","doc":"<p>Add time2 to time1.\x3c/p>\n<p><span
class=\"name\">time1\x3c/span> and <span class=\"name\">time2\x3c/span> are
time representations given in one of the supported
formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span> is the
name of the time format that the result is outputted in.\x3c/p>\n<p>Set
<span class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds
out of the result by default they are kept.\x3c/p>\n<p>Returns the sum of
two times.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Add To
Time\x3c/td>\n<td>01:00:00.000\x3c/td>\n<td>3h\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${14400}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Add To Time\x3c/td>\n<td>3 hours 5
minutes\x3c/td>\n<td>00:01:00.000\x3c/td>\n<td>clock\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>03:06:00.000\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Add To Time","shortdoc":"Add
time2 to time1."},{"args":"date, result_format=timestamp,
exclude_millis=False, date_format=None","doc":"<p>Convert date to different
format.\x3c/p>\n<p><span class=\"name\">date\x3c/span> is a date
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the format that <span
class=\"name\">date\x3c/span> is converted to.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date in specified
format.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>epoch\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>${1401267903.111}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>12.05.03
28-05-2014\x3c/td>\n<td>date_format=%H.%M.%S %m-%d-%Y\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014-05-28
12:05:03\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert
Date\x3c/td>\n<td>${datetime.now()}\x3c/td>\n<td>timestamp:%Y/%m/%d %H:%M\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014/05/28
12:05\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Convert Date","shortdoc":"Convert date to
different format."},{"args":"time, result_format=number,
exclude_millis=False","doc":"<p>Convert time to different
format.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the format that <span
class=\"name\">time\x3c/span> is converted to.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p>Returns time in
specified format.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>10
s\x3c/td>\n<td>number\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${10}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>1:00:01\x3c/td>\n<td>verbose\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1 hour 1
seconds\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>${3660}\x3c/td>\n<td>compact\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1h
1min\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Convert Time","shortdoc":"Convert time to
different format."},{"args":"time_zone=local, increment=0,
result_format=timestamp, exclude_millis=False","doc":"<p>Get current date
value.\x3c/p>\n<p>Current date can be returned in either local time or in
UTC by specifying the <span class=\"name\">time_zone\x3c/span> as
either 'local' or 'UTC'.\x3c/p>\n<p>The value van also be incremented or
subtracted by <span class=\"name\">increment\x3c/span>, which can be any of
the supported time formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the time format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p>Returns a date in
specified format.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${date} =\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
14:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>UTC\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
11:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>UTC\x3c/td>\n<td>-5h\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
06:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>result_format=epoch\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>${1401450301.0}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Get Current Date","shortdoc":"Get
current date value."},{"args":"date1, date2, result_format=number,
exclude_millis=False, date1_format=None,
date2_format=None","doc":"<p>Subtract date2 from date1.\x3c/p>\n<p><span
class=\"name\">date1\x3c/span> and <span class=\"name\">date2\x3c/span> are
date representations given in one supported formats. They can be of
different formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span>
is the name of the time format that the result is outputted
in.\x3c/p>\n<p>Set <span class=\"name\">exclude_millis\x3c/span> to True to
leave milliseconds out of the result by default they are
kept.\x3c/p>\n<p><span class=\"name\">date1_format\x3c/span> and <span
class=\"name\">date2_format\x3c/span> can be used to specify how the two
input dates are formatted if they are strings. See <a
href=\"#Date%20formats\" class=\"name\">Date formats\x3c/a> in the
introduction for syntax.\x3c/p>\n<p>Returns difference between date1 and
date2 in time.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Subtract
Dates\x3c/td>\n<td>2014.05.28 12:05:03.111\x3c/td>\n<td>2014.05.27
12:05:03.111\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${86400}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract Dates\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>2014.05.27
11:04:03.111\x3c/td>\n<td>verbose\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1 day 1 hour 1
second\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract Dates\x3c/td>\n<td>2014.05.28
12:05:03.000\x3c/td>\n<td>2014.05.27
12:05:03.499\x3c/td>\n<td>compact\x3c/td>\n<td>exclude_millis=true\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1d\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract
Dates","shortdoc":"Subtract date2 from date1."},{"args":"date, time,
result_format=timestamp, exclude_millis=False,
date_format=None","doc":"<p>Subtract time from date.\x3c/p>\n<p><span
class=\"name\">date\x3c/span> is a date representation given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the date format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date which is given time before the specified
date.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${date}
=\x3c/td>\n<td>Subtract From Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1h\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014.05.28
11:05:03.111\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Subtract From Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>12h 5min 3s
111ms\x3c/td>\n<td>timestamp:%d:%m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>28.05\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract From
Date","shortdoc":"Subtract time from date."},{"args":"time1, time2,
result_format=number, exclude_millis=False","doc":"<p>Subtract time2 from
time1.\x3c/p>\n<p><span class=\"name\">time1\x3c/span> and <span
class=\"name\">time2\x3c/span> are time representations given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span>
is the name of the time format that the result is outputted
in.\x3c/p>\n<p>Set <span class=\"name\">exclude_millis\x3c/span> to True to
leave milliseconds out of the result by default they are
kept.\x3c/p>\n<p>Returns the difference of two
times.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract From
Time\x3c/td>\n<td>01:00:00.000\x3c/td>\n<td>5min\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${3300}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract From
Time\x3c/td>\n<td>${36}\x3c/td>\n<td>1m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${-14}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract From
Time","shortdoc":"Subtract time2 from
time1."}],"name":"DateTime","named_args":true,"scope":"test
case","version":""};
+libdoc = {"doc":"<p>A test library for manipulating and verifying date and
time values.\x3c/p>\n<p><span class=\"name\">DateTime\x3c/span> is a
standard library of Robot Framework that allows converting date and time
values, adding and subtracting them and verifying variables as date or time
values.\x3c/p>\n<p>This library is new in Robot Framework
2.8.5.\x3c/p>\n<h2 id=\"Table of Contents\">Table of
Contents\x3c/h2>\n<ul>\n<li><a href=\"#Defining%20date%20and%20time\"
class=\"name\">Defining date and time\x3c/a>\x3c/li>\n<li><a
href=\"#Time%20formats\" class=\"name\">Time formats\x3c/a>\x3c/li>\n<li><a
href=\"#Date%20formats\" class=\"name\">Date formats\x3c/a>\x3c/li>\n<li><a
href=\"#Formatted%20timestamps\" class=\"name\">Formatted
timestamps\x3c/a>\x3c/li>\n<li><a href=\"#Millisecond%20handling\"
class=\"name\">Millisecond handling\x3c/a>\x3c/li>\n<li><a
href=\"#Keywords\" class=\"name\">Keywords\x3c/a>\x3c/li>\n\x3c/ul>\n<h2
id=\"Defining date and time\">Defining date and time\x3c/h2>\n<p>The terms
used by this library differ somewhat from those used in Python. In this
library the term <span class=\"name\">time\x3c/span> is used to represent a
period of time measured in hours, minutes, seconds etc. (like Python's
timedelta).\x3c/p>\n<p>On the other hand, <span
class=\"name\">date\x3c/span> represents both date and time of day (like
Python's datetime).\x3c/p>\n<h2 id=\"Time formats\">Time
formats\x3c/h2>\n<p>Time can be input in and converted to following
formats:\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Format
name\x3c/th>\n<th>Example\x3c/th>\n\x3c/tr>\n<tr>\n<td>number\x3c/td>\n<td>3903.0\x3c/td>\n\x3c/tr>\n<tr>\n<td>verbose\x3c/td>\n<td>1hour
5minutes 3seconds\x3c/td>\n\x3c/tr>\n<tr>\n<td>compact\x3c/td>\n<td>1h 5m
3s\x3c/td>\n\x3c/tr>\n<tr>\n<td>clock\x3c/td>\n<td>01:05:03.000\x3c/td>\n\x3c/tr>\n<tr>\n<td>timedelta\x3c/td>\n<td>Python
timedelta object\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Date
formats\">Date formats\x3c/h2>\n<p>Date can be input in and converted to
following formats:\x3c/p>\n<table border=\"1\">\n<tr>\n<th>Format
name\x3c/th>\n<th>Example\x3c/th>\n\x3c/tr>\n<tr>\n<td>timestamp\x3c/td>\n<td>28.05.2014
12:05:03.000\x3c/td>\n\x3c/tr>\n<tr>\n<td>epoch\x3c/td>\n<td>123123123123.0\x3c/td>\n\x3c/tr>\n<tr>\n<td>datetime\x3c/td>\n<td>Python
datetime object\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Formatted
timestamps\">Formatted timestamps\x3c/h2>\n<p><span
class=\"name\">timestamp\x3c/span> strings can have both input and output
formatting specified in formatting directives which are documented in
Python's <a
href=\"https://docs.python.org/2/library/time.html#time.strftime\">time.strftime()
documentation\x3c/a>.\x3c/p>\n<p><b>Note:\x3c/b> The %f directive for
microseconds is not supported anywhere but in the end of a format string
for Python versions < 2.6 and for Jython.\x3c/p>\n<p>Input formatting is
always given as separate parameter (or parameters, if there are many date
inputs) to keywords handling dates. In output formatting however, a colon
character is needed to specify that we want a timestamp with custom
formatting (e.g. 'timestamp:format').\x3c/p>\n<p>If a format is not given
to string input or output in keyword, it is assumed to
be '%Y-%m-%d %H:%M:%S' by default. However, the input is flexible and will
accept any non-digit separators as long as the numbers are in the right
order.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>12:05:03
28.05.2014\x3c/td>\n<td>date_format=%H:%M:%S %m.%d.%Y\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014-05-28
12:05:03\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Add To
Date\x3c/td>\n<td>${ts}\x3c/td>\n<td>1hour\x3c/td>\n<td>timestamp:%H.%M.%S %d-%m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>13.05.03
28-05\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<h2 id=\"Millisecond
handling\">Millisecond handling\x3c/h2>\n<p>Every keyword in this library
has the option to leave milliseconds out of the result. By default,
milliseconds are kept with every conversion and calculation. If
milliseconds are chosen to be left out the result will be rounded to
nearest second.\x3c/p>","generated":"2014-06-02
15:16:06","inits":[],"keywords":[{"args":"date, time,
result_format=timestamp, exclude_millis=False,
date_format=None","doc":"<p>Add time to a date.\x3c/p>\n<p><span
class=\"name\">date\x3c/span> is a date representation given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the date format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date which is given amount of time in the
future.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${date} =\x3c/td>\n<td>Add To
Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1h\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014.05.28
13:05:03.111\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Add To Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1 year 3
hours\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2015.05.28
15:05:03.111\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Add To Date","shortdoc":"Add time to a
date."},{"args":"time1, time2, result_format=number,
exclude_millis=False","doc":"<p>Add time2 to time1.\x3c/p>\n<p><span
class=\"name\">time1\x3c/span> and <span class=\"name\">time2\x3c/span> are
time representations given in one of the supported
formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span> is the
name of the time format that the result is outputted in.\x3c/p>\n<p>Set
<span class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds
out of the result by default they are kept.\x3c/p>\n<p>Returns the sum of
two times.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Add To
Time\x3c/td>\n<td>01:00:00.000\x3c/td>\n<td>3h\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${14400}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Add To Time\x3c/td>\n<td>3 hours 5
minutes\x3c/td>\n<td>00:01:00.000\x3c/td>\n<td>clock\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>03:06:00.000\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Add To Time","shortdoc":"Add
time2 to time1."},{"args":"date, result_format=timestamp,
exclude_millis=False, date_format=None","doc":"<p>Convert date to different
format.\x3c/p>\n<p><span class=\"name\">date\x3c/span> is a date
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the format that <span
class=\"name\">date\x3c/span> is converted to.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date in specified
format.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>epoch\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>${1401267903.111}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert Date\x3c/td>\n<td>12.05.03
28-05-2014\x3c/td>\n<td>date_format=%H.%M.%S %m-%d-%Y\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014-05-28
12:05:03\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${ts}
=\x3c/td>\n<td>Convert
Date\x3c/td>\n<td>${datetime.now()}\x3c/td>\n<td>timestamp:%Y/%m/%d %H:%M\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${ts}\x3c/td>\n<td>2014/05/28
12:05\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Convert Date","shortdoc":"Convert date to
different format."},{"args":"time, result_format=number,
exclude_millis=False","doc":"<p>Convert time to different
format.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the format that <span
class=\"name\">time\x3c/span> is converted to.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p>Returns time in
specified format.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>10
s\x3c/td>\n<td>number\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${10}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>1:00:01\x3c/td>\n<td>verbose\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1 hour 1
seconds\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Convert
Time\x3c/td>\n<td>${3660}\x3c/td>\n<td>compact\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1h
1min\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New in Robot
Framework 2.8.5.\x3c/p>","name":"Convert Time","shortdoc":"Convert time to
different format."},{"args":"time_zone=local, increment=0,
result_format=timestamp, exclude_millis=False","doc":"<p>Get current date
value.\x3c/p>\n<p>Current date can be returned in either local time or in
UTC by specifying the <span class=\"name\">time_zone\x3c/span> as
either 'local' or 'UTC'.\x3c/p>\n<p>The value van also be incremented or
subtracted by <span class=\"name\">increment\x3c/span>, which can be any of
the supported time formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the time format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p>Returns a date in
specified format.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${date} =\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
14:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>UTC\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
11:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>UTC\x3c/td>\n<td>-5h\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014-05-30
06:45:01.135\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Get Current
Date\x3c/td>\n<td>result_format=epoch\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>${1401450301.0}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Get Current Date","shortdoc":"Get
current date value."},{"args":"date, input_format=None","doc":"<p>Validate
input to be a date.\x3c/p>\n<p><span class=\"name\">date\x3c/span> is valid
when it is in one of the <a href=\"#Date%20formats\" class=\"name\">Date
Formats\x3c/a>.\x3c/p>\n<p><span class=\"name\">input_format\x3c/span> is
formatting directive (See <a href=\"#Formatted%20timestamps\"
class=\"name\">Formatted Timestamps\x3c/a> in introduction) that can be
given to validate a timestamp string in custom format.\x3c/p>\n<p>Returns
<span class=\"name\">True\x3c/span> if <span class=\"name\">date\x3c/span>
is valid and <span class=\"name\">False\x3c/span>
otherwise.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${result} =\x3c/td>\n<td>Should Be
Date\x3c/td>\n<td>2014-06-02
11:59:01.001\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${result}
=\x3c/td>\n<td>Should Be Date\x3c/td>\n<td>11:59:01.001
02-06-2014\x3c/td>\n<td>%H:%M:%S %d-%m-%Y\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${result}
=\x3c/td>\n<td>Should Be Date\x3c/td>\n<td>no date
here\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Not Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${result}
=\x3c/td>\n<td>Should Be
Date\x3c/td>\n<td>${111}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${result}
=\x3c/td>\n<td>Should Be
Date\x3c/td>\n<td>111\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Not
Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Should Be
Date","shortdoc":"Validate input to be a
date."},{"args":"time","doc":"<p>Validate input to be a time
value.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is valid when it is
in one of the <a href=\"#Time%20formats\" class=\"name\">Time
Formats\x3c/a>.\x3c/p>\n<p>Returns <span class=\"name\">True\x3c/span> if
<span class=\"name\">time\x3c/span> is valid and <span
class=\"name\">False\x3c/span>
otherwise.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${result} =\x3c/td>\n<td>Should Be
Time\x3c/td>\n<td>10 s\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${result}
=\x3c/td>\n<td>Should Be Time\x3c/td>\n<td>1
parsec\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Not Be
True\x3c/td>\n<td>${result}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Should Be
Time","shortdoc":"Validate input to be a time value."},{"args":"date1,
date2, result_format=number, exclude_millis=False, date1_format=None,
date2_format=None","doc":"<p>Subtract date2 from date1.\x3c/p>\n<p><span
class=\"name\">date1\x3c/span> and <span class=\"name\">date2\x3c/span> are
date representations given in one supported formats. They can be of
different formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span>
is the name of the time format that the result is outputted
in.\x3c/p>\n<p>Set <span class=\"name\">exclude_millis\x3c/span> to True to
leave milliseconds out of the result by default they are
kept.\x3c/p>\n<p><span class=\"name\">date1_format\x3c/span> and <span
class=\"name\">date2_format\x3c/span> can be used to specify how the two
input dates are formatted if they are strings. See <a
href=\"#Date%20formats\" class=\"name\">Date formats\x3c/a> in the
introduction for syntax.\x3c/p>\n<p>Returns difference between date1 and
date2 in time.\x3c/p>\n<p>Examples:\x3c/p>\n<table
border=\"1\">\n<tr>\n<td>${time} =\x3c/td>\n<td>Subtract
Dates\x3c/td>\n<td>2014.05.28 12:05:03.111\x3c/td>\n<td>2014.05.27
12:05:03.111\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${86400}\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract Dates\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>2014.05.27
11:04:03.111\x3c/td>\n<td>verbose\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1 day 1 hour 1
second\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract Dates\x3c/td>\n<td>2014.05.28
12:05:03.000\x3c/td>\n<td>2014.05.27
12:05:03.499\x3c/td>\n<td>compact\x3c/td>\n<td>exclude_millis=true\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>1d\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract
Dates","shortdoc":"Subtract date2 from date1."},{"args":"date, time,
result_format=timestamp, exclude_millis=False,
date_format=None","doc":"<p>Subtract time from date.\x3c/p>\n<p><span
class=\"name\">date\x3c/span> is a date representation given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">time\x3c/span> is a time
representation given in one of the supported formats.\x3c/p>\n<p><span
class=\"name\">result_format\x3c/span> is the name of the date format that
the result is outputted in.\x3c/p>\n<p>Set <span
class=\"name\">exclude_millis\x3c/span> to True to leave milliseconds out
of the result by default they are kept.\x3c/p>\n<p><span
class=\"name\">date_format\x3c/span> can be used to specify how the input
date is formatted if it is a string. See <a href=\"#Date%20formats\"
class=\"name\">Date formats\x3c/a> in the introduction for
syntax.\x3c/p>\n<p>Returns date which is given time before the specified
date.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${date}
=\x3c/td>\n<td>Subtract From Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>1h\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>2014.05.28
11:05:03.111\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${date}
=\x3c/td>\n<td>Subtract From Date\x3c/td>\n<td>2014.05.28
12:05:03.111\x3c/td>\n<td>12h 5min 3s
111ms\x3c/td>\n<td>timestamp:%d:%m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should Be
Equal\x3c/td>\n<td>${date}\x3c/td>\n<td>28.05\x3c/td>\n<td>\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract From
Date","shortdoc":"Subtract time from date."},{"args":"time1, time2,
result_format=number, exclude_millis=False","doc":"<p>Subtract time2 from
time1.\x3c/p>\n<p><span class=\"name\">time1\x3c/span> and <span
class=\"name\">time2\x3c/span> are time representations given in one of the
supported formats.\x3c/p>\n<p><span class=\"name\">result_format\x3c/span>
is the name of the time format that the result is outputted
in.\x3c/p>\n<p>Set <span class=\"name\">exclude_millis\x3c/span> to True to
leave milliseconds out of the result by default they are
kept.\x3c/p>\n<p>Returns the difference of two
times.\x3c/p>\n<p>Examples:\x3c/p>\n<table border=\"1\">\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract From
Time\x3c/td>\n<td>01:00:00.000\x3c/td>\n<td>5min\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${3300}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n<tr>\n<td>${time}
=\x3c/td>\n<td>Subtract From
Time\x3c/td>\n<td>${36}\x3c/td>\n<td>1m\x3c/td>\n\x3c/tr>\n<tr>\n<td>Should
Be
Equal\x3c/td>\n<td>${time}\x3c/td>\n<td>${-14}\x3c/td>\n<td>\x3c/td>\n\x3c/tr>\n\x3c/table>\n<p>New
in Robot Framework 2.8.5.\x3c/p>","name":"Subtract From
Time","shortdoc":"Subtract time2 from
time1."}],"name":"DateTime","named_args":true,"scope":"test
case","version":""};
</script>
<title></title>
</head>
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.