# AwsCommunity::Time::Offset Creates a time based resource with an offset from the provided time or now. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AwsCommunity::Time::Offset",
    "Properties" : {
        "Time" : String,
        "OffsetDays" : Integer,
        "OffsetHours" : Integer,
        "OffsetMinutes" : Integer,
        "OffsetMonths" : Integer,
        "OffsetSeconds" : Integer,
        "OffsetYears" : Integer,
        "Triggers" : [ String, ... ]
    }
}
### YAML
Type: AwsCommunity::Time::Offset
Properties:
    Time: String
    OffsetDays: Integer
    OffsetHours: Integer
    OffsetMinutes: Integer
    OffsetMonths: Integer
    OffsetSeconds: Integer
    OffsetYears: Integer
    Triggers: 
      - String
## Properties #### Time Optional parameter to represent the time or default is now. _Required_: No _Type_: String _Pattern_: ^\d{4}-[0-1][0-3]-[0-3]\d{1}T[0-2]\d{1}:[0-5]\d{1}:[0-5]\d{1}Z$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetDays Number of days to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetHours Number of hours to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetMinutes Number of minutes to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetMonths Number of months to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetSeconds Number of seconds to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### OffsetYears Number of years to offset the base timestamp. _Required_: No _Type_: Integer _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Triggers A value to represent when an update to the time should occur. _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Id. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### Id Id is a unique identifier that is auto generated. #### Utc UTC returns the time in UTC format. #### Day Day returns the day of the month. #### Hour Hour returns the hour within the day, in the range [0, 23]. #### Minute Minute returns the minute offset within the hour, in the range [0, 59]. #### Month Month returns the month of the year. #### Second Second returns the second offset within the minute, in the range [0, 59]. #### Unix Unix returns a Unix time, the number of seconds elapsed since January 1, 1970 UTC. #### Year Year returns the year.