Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. CO@Dinah this just an approximation, if you want to know the true .Month and .Years - I've just posted an answer for that which you can read. Although, as far as approximations so, this is a good approximation (props to Adam Robinson) however you should keep in mind that if you use any of these approximations you are just unintentionally lying to your users.
      singulars
    2. CO@Erx_VB.NExT.Coder: Thanks for the props, but while your answer states that none of the answers take the fact that a month is a variable unit of measure into account, it seems that most of them do; they just don't use your particular approximation. Case in point, the very first sentence in my answer indicates that it's variable. Any answer, yours included, *is an approximation*, simply because it is not a precise answer. Your "2 months" result can mean different things for different inputs, so it is an approximation.
      singulars
    3. COmine is not an approximation though, if today is the 14th of March, then the two pervious months are calculated based on the fact that jan had 31 days in it, and feb hasd 29 days in it. now, youre correct in that my method is not the definition of a "general" month, & yours is! However, mine only applies if you are reporting things like "This comment was posted x months and y days AGO", the "AGO" part makes the difference, because its referring to the previous x months, those previous x months need to be calculated based on how many days were present in those x months! link....
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload