home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
date.extract - function does not work correctly?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="123vak123" data-source="post: 1231529" data-attributes="member: 109112"><p><strong>MediaPortal Version:</strong> 1.18.0</p><p></p><p><strong>Description</strong></p><p>I tried to extract the values of hours and minutes by the function "data extract" from the tags #currentremaining and #durathion. If the tag value is more than one hour, then the function works normally (see screenshot 1). If the tag value is less than one hour, the function returns 0 (or is it the error value?) for both hours and minutes (see screenshot 2 and 3). But for some files "date.extract('h',cdate(#currentremaining))" returns minutes, "date.extract('n',cdate(#currentremaining))" - seconds (see screenshot 4).</p><p></p><p>What it could be: bug or feature of the function?</p><p></p><p><strong>Steps to Reproduce:</strong></p><p>I do not know yet what to write here. The problem was revealed during the discussion of the topic <a href="https://forum.team-mediaportal.com/threads/is-it-possible-to-add-two-time-values.137374/#post-1231244" target="_blank">Is it possible to add two time values?</a></p></blockquote><p></p>
[QUOTE="123vak123, post: 1231529, member: 109112"] [b]MediaPortal Version:[/b] 1.18.0 [b]Description[/b] I tried to extract the values of hours and minutes by the function "data extract" from the tags #currentremaining and #durathion. If the tag value is more than one hour, then the function works normally (see screenshot 1). If the tag value is less than one hour, the function returns 0 (or is it the error value?) for both hours and minutes (see screenshot 2 and 3). But for some files "date.extract('h',cdate(#currentremaining))" returns minutes, "date.extract('n',cdate(#currentremaining))" - seconds (see screenshot 4). What it could be: bug or feature of the function? [b]Steps to Reproduce:[/b] I do not know yet what to write here. The problem was revealed during the discussion of the topic [URL="https://forum.team-mediaportal.com/threads/is-it-possible-to-add-two-time-values.137374/#post-1231244"]Is it possible to add two time values?[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
date.extract - function does not work correctly?
Contact us
RSS
Top
Bottom