FAQ
How do i convert time to string?

mytime :=time.Now()


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Ludwig Valda Vasquez at Aug 24, 2013 at 11:36 pm
    You may simply use fmt.Sprint, or, if you want more control over the
    layout, use Format method: http://golang.org/pkg/time/#Time.Format

    воскресенье, 25 августа 2013 г., 3:32:45 UTC+4 пользователь will написал:
    How do i convert time to string?

    mytime :=time.Now()

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Dan Kortschak at Aug 24, 2013 at 11:37 pm
    http://golang.org/pkg/time/#Time.Format

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Will at Aug 24, 2013 at 11:47 pm
    THanks guys

    On Sunday, 25 August 2013 01:37:26 UTC+2, kortschak wrote:

    http://golang.org/pkg/time/#Time.Format
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Kelsey Hightower at Aug 25, 2013 at 12:20 am
    <script src="https://gist.github.com/kelseyhightower/6331146.js"></script>
    On Saturday, August 24, 2013 4:32:45 PM UTC-7, will wrote:

    How do i convert time to string?

    mytime :=time.Now()

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Kelsey Hightower at Aug 25, 2013 at 12:21 am
    Example: http://play.golang.org/p/DN5Py5MxaB
    On Saturday, August 24, 2013 4:32:45 PM UTC-7, will wrote:

    How do i convert time to string?

    mytime :=time.Now()

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 24, '13 at 11:32p
activeAug 25, '13 at 12:21a
posts6
users4
websitegolang.org

People

Translate

site design / logo © 2023 Grokbase