{"modulePath":"github.com/devth/helm","version":"v2.0.0-alpha.2.0.20160816162624-120256ecb3a5+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package timeconv\n\nPackage timeconv contains utilities for converting time.\n\nThe gRPC/Protobuf libraries contain time implementations that require conversion to and from Go times. This library provides utilities and convenience functions for performing conversions.\n\n## Functions\n\n```go\nfunc Format(ts *timestamp.Timestamp, layout string) string\n```\nFormat formats a \\*timestamp.Timestamp into a string.\n\nThis follows the rules for time.Time.Format().\n\n```go\nfunc Now() *timestamp.Timestamp\n```\nNow creates a timestamp.Timestamp representing the current time.\n\n```go\nfunc String(ts *timestamp.Timestamp) string\n```\nString formats the timestamp into a user-friendly string.\n\nCurrently, this uses the 'time.ANSIC' format string, but there is no guarantee that this will not change.\n\nThis is a convenience function for formatting timestamps for user display.\n\n```go\nfunc Time(ts *timestamp.Timestamp) time.Time\n```\nTime converts a protobuf \\*timestamp.Timestamp to a time.Time.\n\n```go\nfunc Timestamp(t time.Time) *timestamp.Timestamp\n```\nTimestamp converts a time.Time to a protobuf \\*timestamp.Timestamp.\n\n","path":"github.com/devth/helm/pkg/timeconv","name":"timeconv","synopsis":"Package timeconv contains utilities for converting time.","isRedistributable":true}
