Yes.  Just include the unit type in the name.
Am 26.07.2013 11:31 schrieb "juliusv" <notifications@github.com>:

> In web/api/silence.go:
>
> > +
> > +import (
> > +	"encoding/json"
> > +	"fmt"
> > +	"log"
> > +	"net/http"
> > +	"time"
> > +
> > +	"code.google.com/p/gorest"
> > +
> > +	"github.com/prometheus/alert_manager/manager"
> > +)
> > +
> > +type Silence struct {
> > +	CreatedBy string
> > +	CreatedAt int64
>
> time.Time does RFC3339-style time marshalling, which is kind of tedious
> to handle in Javascript, so I think Unix timestamps are better to use in an
> API.
>
> If we keep this in seconds since the epoch, would CreatedAtSeconds be a
> good idea? Same for EndsAtSeconds. Or maybe just a comment and leave the
> field names unchanged?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/prometheus/alert_manager/pull/5/files#r5419107>
> .
>