<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dave and Dennis,<div class=""><br class=""></div><div class="">Thanks. So I suggest to explicitly inform that on Calendar functions, so the user will not expect different behaviors from these unit qualifiers.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Mateus</div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Em 16 de nov de 2018, à(s) 02:27, Dennis Shea <<a href="mailto:shea@ucar.edu" class="">shea@ucar.edu</a>> escreveu:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I was in the process of answering when DaveA's response appeared.</div><div class=""><br class=""></div><div class="">The gist of my response is that "<b class="">from</b>", "<b class="">after</b>", "<b class="">ref</b>" are <i class="">synonyms</i> for "<b class="">since</b>". <br class=""></div><div class=""><br class=""></div><div class=""><span class="gmail-st">From WikiPedia: A <b class=""><em class="">synonym</em></b> is a word or phrase that means exactly or nearly the same as another lexeme (word or phrase) in the same language.</span></div><div class=""><span class="gmail-st"><br class=""></span></div><div class="">Cheers<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, Nov 15, 2018 at 9:12 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" class="">dave.allured@noaa.gov</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Mateus,<br class=""><br class="">Those units qualifiers are from the original UDUNITS package which set the precedent for formatted date/time unit strings. UDUNITS originally called them "origin shift operators".</div><div class=""><br class=""></div><div class="">The four words all mean exactly the same thing in this context. They are the human-readable separator between the base unit, e.g. "days", and the string representing the timeline origin, e.g. "0001-01-01".</div><div class=""><br class="">--Dave</div><div class=""><br class=""></div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, Nov 15, 2018 at 7:11 PM Mateus da Silva Teixeira <<a href="mailto:mateusstex@gmail.com" target="_blank" class="">mateusstex@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hi,<div class=""><br class=""></div><div class="">Some time ago I asked about an issue noted when using units qualifiers. I would like to know if someone take a look on it.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Mateus</div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Em 21 de ago de 2018, à(s) 09:48, Mateus da Silva Teixeira <<a href="mailto:mateusstex@gmail.com" target="_blank" class="">mateusstex@gmail.com</a>> escreveu:</div><br class="m_3229845020050519323gmail-m_-431645866018820647Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>I'm testing date functions and noted that the usage of different units qualifiers: "since", "after", "from" and "ref" has no impact on results from cd_inv_calendar_function(). See my example below:<br class=""><br class=""><i class="">dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days since 0001-01-01 00:00:00", 0 )<br class="">print( dataTeste+" <=== since" )<br class="">dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days after 0001-01-01 00:00:00", 0 )<br class="">print( dataTeste+" <=== after" )<br class="">dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days from 0001-01-01 00:00:00", 0 )<br class="">print( dataTeste+" <=== from" )<br class="">dataTeste = cd_inv_calendar( 2018, 08, 21, 09, 30, 0, "days ref 0001-01-01 00:00:00", 0 )<br class="">print( dataTeste+" <=== ref" )</i><br class=""><br class=""></div>and the output:<br class=""><br class="">(0) 736928.3958333334 <=== since<br class="">(0) 736928.3958333334 <=== after<br class="">(0) 736928.3958333334 <=== from<br class="">(0) 736928.3958333334 <=== ref<br class=""><br class=""></div><div class="">Is it correct?<br class=""><br class=""></div><div class="">If yes, what the purpose of these units qualifiers?<br class=""><br class=""></div><div class="">Thank you!<br class=""><br class=""></div><div class="">Mateus</div></div></div></blockquote></div></div></div>
</blockquote></div></div></div></div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>