go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/nodes/pkg/funcs/current_timestamp.go (about)

     1  /*
     2  
     3  Copyright (c) 2024 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package funcs
     9  
    10  import (
    11  	"context"
    12  	"time"
    13  )
    14  
    15  // CurrentTimestamp returns the current timestamp.
    16  func CurrentTimestamp(_ context.Context) (time.Time, error) {
    17  	return time.Now().UTC(), nil
    18  }