<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:04:22 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-23747] Error Get time difference between two dates in seconds</title>
                <link>https://jira.mongodb.org/browse/SERVER-23747</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Calculating seconds between two dates error in mongodb &lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.collection.aggregate({$project:{&quot;dateDifference&quot;: { $subtract: [ ISODate(&quot;2015-05-30T10:01:58.000Z&quot;),&quot;$date&quot;]}}})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="279974">SERVER-23747</key>
            <summary>Error Get time difference between two dates in seconds</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="shibish">shibimukesh</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Apr 2016 13:20:08 +0000</created>
                <updated>Thu, 22 Feb 2018 13:45:57 +0000</updated>
                            <resolved>Mon, 25 Apr 2016 23:23:56 +0000</resolved>
                                    <version>3.3.2</version>
                                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1812716" author="anurag.gupta816" created="Thu, 22 Feb 2018 13:45:57 +0000"  >&lt;p&gt;how to calculate date difference in days?  &lt;/p&gt;</comment>
                            <comment id="1246138" author="thomas.schubert" created="Mon, 25 Apr 2016 23:23:56 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shibish&quot; class=&quot;user-hover&quot; rel=&quot;shibish&quot;&gt;shibish&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Yes, the aggregation pipeline supports the operations that you describe. From your responses, I do not see anything to indicate a bug in the MongoDB server. For MongoDB-related support discussion please post on the &lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-users group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-users group.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1238692" author="shibish" created="Mon, 18 Apr 2016 14:57:27 +0000"  >&lt;p&gt;Respect Thomas Schubert,&lt;br/&gt;
Thanks for your response,&lt;br/&gt;
db.collection.aggregate({$project:{&quot;dateDifference&quot;: &lt;/p&gt;
{ $subtract: [
ISODate(&quot;2015-05-30T10:01:58.000Z&quot;),&quot;$date&quot;]}
&lt;p&gt;}})&lt;/p&gt;

&lt;p&gt;this was my query i need to take the difference between the date and time&lt;br/&gt;
in want to project the time less than 15 sec&lt;br/&gt;
and my clarification is that do $subtract aggregation will take the&lt;br/&gt;
differnce between time,&lt;br/&gt;
thanks in advance&lt;br/&gt;
with regards,&lt;br/&gt;
M.shibi&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Best Regards,&lt;/b&gt;&lt;/p&gt;


&lt;p&gt;*Shibi.M*Hadoop Developer&lt;/p&gt;


&lt;p&gt;&amp;lt;&lt;a href=&quot;http://www.ndottech.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.ndottech.com/&lt;/a&gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;NDOT Technologies Pvt Ltd&lt;/b&gt;,&lt;br/&gt;
Block No 3,&lt;br/&gt;
1,2 &amp;amp; 3rd Floor,&lt;br/&gt;
Mullai Nagar,&lt;br/&gt;
Coimbatore - 641041.&lt;br/&gt;
&lt;b&gt;Phone&lt;/b&gt;: +91 422-434-2518, 519&lt;/p&gt;

&lt;p&gt;shibi.m@ndot.in&lt;/p&gt;

&lt;p&gt;&lt;b&gt;US :&lt;/b&gt; +1 (323) 982-8943&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://www.facebook.com/ndotin&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.facebook.com/ndotin&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://www.linkedin.com/company/ndot-technologies&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.linkedin.com/company/ndot-technologies&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;lt;&lt;a href=&quot;http://twitter.com/ndottechnology&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://twitter.com/ndottechnology&lt;/a&gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;&lt;a href=&quot;http://www.ndot.in/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.ndot.in/&lt;/a&gt;&amp;gt;Enterprise Mobility &#8211; CRM &#8211; ERP &#8211; Mobile &#8211; Web &#8211;&lt;br/&gt;
Software &#8211; Hire Team &#8211; Ecommerce&lt;/p&gt;

&lt;p&gt;&lt;b&gt;INDIA (HQ)&lt;/b&gt; - Singapore - United States - Dubai - Morocco &#8211; Spain -&lt;br/&gt;
Venezuela&lt;/p&gt;

&lt;p&gt;&lt;b&gt;DISCLAIMER:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The information contained in this message (including any attachments) is&lt;br/&gt;
confidential and may be privileged. If you have received it by mistake&lt;br/&gt;
please notify the sender by return e-mail and permanently delete this&lt;br/&gt;
message and any attachments from your system. Any dissemination, use,&lt;br/&gt;
review, distribution, printing or copying of this message in whole or in&lt;br/&gt;
part is strictly prohibited. Please note that e-mails are susceptible to&lt;br/&gt;
change. NDOT Technologies Pvt Ltd  (including its group companies) shall&lt;br/&gt;
not be liable for the improper or incomplete transmission of the&lt;br/&gt;
information contained in this email.&lt;/p&gt;

&lt;p&gt;On Fri, Apr 15, 2016 at 9:16 PM, Thomas Schubert (JIRA) &amp;lt;jira@mongodb.org&amp;gt;&lt;/p&gt;
</comment>
                            <comment id="1238690" author="shibish" created="Mon, 18 Apr 2016 14:57:19 +0000"  >&lt;p&gt;db.collection.aggregate({$project:{&quot;dateDifference&quot;: &lt;/p&gt;
{ $subtract: [ ISODate(&quot;2015-05-30T10:01:58.000Z&quot;),&quot;$date&quot;]}
&lt;p&gt;}})&lt;br/&gt;
this was my query i need to take the difference between the date and time and want to project the output as time less than 15 sec and my clarification is that do $subtract aggregation will take the differnce between time and date&lt;br/&gt;
thanks in advance&lt;/p&gt;</comment>
                            <comment id="1237238" author="thomas.schubert" created="Fri, 15 Apr 2016 15:43:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shibish&quot; class=&quot;user-hover&quot; rel=&quot;shibish&quot;&gt;shibish&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Can you please clarify what the error is that you are seeing? Can you provide the output after running query in the description?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1237037" author="shibish" created="Fri, 15 Apr 2016 13:21:15 +0000"  >&lt;p&gt;how to calculate time difference in seconds for two dates&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 15 Apr 2016 15:43:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 50 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>anurag.gupta816</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 50 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>anurag.gupta816</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>shibish</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrka9j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hskgi7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjclz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>