You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Hi,
Could you please help me find the way to compute the last day of month?
While looking into time package, I've found 'daysIn' but it is not exported...
Thanks.
Note: In Java, the last day of month can be computed this way: Calendar.getActualMaximum(DAY_OF_MONTH) (standard lib), LocalDate.dayOfMonth().getMaximumValue() (joda time).
Ian Lance Taylor
unread,
Oct 31, 2012, 3:50:41 PM10/31/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwenn, golang-nuts
On Wed, Oct 31, 2012 at 12:27 PM, gwenn <gwenn...@gmail.com> wrote:
> Hi,
> Could you please help me find the way to compute the last day of month?
> While looking into time package, I've found 'daysIn' but it is not
> exported...
The last day of the month depends on the year, of course.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pa...@daishisystems.com, golang-nuts
Sorry but I don't understand the following part: "that is not
available in standard Go libraries."
The link
http://play.golang.org/p/ixFz2w8ozR previously posted in this thread proves the opposite, no ?
pa...@daishisystems.com
unread,
Oct 6, 2015, 12:15:48 PM10/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts, pa...@daishisystems.com, gwenn...@gmail.com
Thank you for pointing
this out. I hadn’t considered that solution when drafting the package. Yes, I
agree; the functionality is present in the core libraries. I’ve modified the package
blurb accordingly.