---
title: "gsql_month_epoch()"
component: "gsql-ref"
version: "3.11"
module: "ddl-and-loading"
html_url: "/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_month_epoch"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_month_epoch"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_month_epoch.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_month_epoch)

# gsql_month_epoch()

Returns the month number (1 - 12) from a Unix [epoch time](https://en.wikipedia.org/wiki/Unix%5Ftime) value.

## Syntax

`gsql_month_epoch(epoch)`

## Parameters

epoch

Required. A Unix epoch time value.

## Return type

`INT`

## Example

gsql_year_epoch(1657327158) -> 7
