id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Moment_js_Documentation/DateFormathtml_402_0.txt | Tell whether date/time parsing is to be lenient. This method is equivalent to
the following call. | |
Moment_js_Documentation/javadateformat_184_0.txt | Cyber Security | |
Moment_js_Documentation/Moment_js_Documentation_33_0.txt | ### Moment Clone 1.2.0+
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/01-parsing/12-moment-
clone.md)
moment(Moment);
All moments are mutable. If you want a clone of a moment, you can do so
implicitly or explicitly.
Calling ` moment() ` on a moment will clone it.
... | |
Moment_js_Documentation/simpledateformathtml_13_0.txt | ## Creating a SimpleDateFormat | |
Moment_js_Documentation/Moment_js_Documentation_31_0.txt | ### Array 1.0.0+
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/01-parsing/10-array.md)
moment(Number[]);
You can create a moment with an array of numbers that mirror the parameters
passed to [ new Date()
](https://developer.mozilla.org/en/JavaScript/Reference/Global_Obj... | |
Moment_js_Documentation/javadateformat_6_0.txt | [ Java Date Time API ](java-date) [ Java LocalDate ](java-localdate) [ Java
LocalTime ](java-localtime) [ Java LocalDateTime ](java-localdatetime) [
Java MonthDay ](java-monthday) [ Java OffsetTime ](java-offsettime) [ Java
OffsetDateTime ](java-offsetdatetime) [ Java Clock ](java-clock) [ Java
ZonedDateTime ]... | |
Moment_js_Documentation/DateFormathtml_21_0.txt | To format a date for the current Locale, use one of the static factory
methods: | |
Moment_js_Documentation/DateFormathtml_58_0.txt | ` static int ` | ` [ FULL ](../../java/text/DateFormat.html#FULL) ` | |
Moment_js_Documentation/DateFormathtml_256_0.txt | [ Constant Field Values ](../../constant-values.html#java.text.DateFormat.DEFAULT)
* ### Constructor Detail | |
Moment_js_Documentation/DateFormathtml_209_0.txt | public static final int DAY_OF_WEEK_IN_MONTH_FIELD | |
Moment_js_Documentation/javasimpledateformat_178_0.txt | [ Ask a question ](/community/questions) [ Search for more help ](/community) | |
Moment_js_Documentation/javadateformat_73_0.txt | **FileName:** GetNumberFormatExample.java | |
Moment_js_Documentation/javasimpledateformat_261_0.txt | * [ About ](/about)
* [ Leadership ](https://investors.digitalocean.com/governance/executive-management/default.aspx)
* [ Blog ](/blog)
* [ Careers ](/careers)
* [ Customers ](/customers)
* [ Partners ](/partners)
* [ Referral Program ](/referral-program)
* [ Affiliate Program ](/affiliates)
* [ Press ](/press)
* [ Leg... | |
Moment_js_Documentation/simpledateformathtml_61_0.txt | You can set more date formatting symbols on the ` DateFormatSymbols `
instance. Here are the methods you can use to set additional symbols: | |
Moment_js_Documentation/javasimpledateformat_128_0.txt | Type | Pattern | Example Output
---|---|---
Full Month | ` MMMM ` | July
Abbreviated Month | ` MMM ` | Jul
Numeric Month | ` MM ` | 07 | |
Moment_js_Documentation/Moment_js_Documentation_65_0.txt | ### Maximum From 2.1.0, Deprecated 2.7.0
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/03-manipulating/05-max.md)
moment().max(Moment|String|Number|Date|Array);
**Note:** This function has been **deprecated** in **2.7.0** . Consider [ `
moment.min ` ](/docs/#/get-set/mi... | |
Moment_js_Documentation/javadateformat_59_0.txt |
## Java DateFormat Example: getDateTimeInstance(int dateStyle, int timeStyle,
Locale locale) | |
Moment_js_Documentation/DateFormathtml_366_0.txt | Any [ ` TimeZone ` ](../../java/util/TimeZone.html "class in java.util") and [
leniency ](../../java/text/DateFormat.html#isLenient--) values that have
previously been set are overwritten by ` newCalendar ` 's values. | |
Moment_js_Documentation/javasimpledateformat_29_0.txt | * [ Blogs, Forums and Content Websites ](/solutions/content-hosting) Lightning-fast, reliable CMS hosting | |
Moment_js_Documentation/javadateformat_37_0.txt | **FileName:** DateFormatExample3.java | |
Moment_js_Documentation/Moment_js_Documentation_105_0.txt | ### Listing the months and weekdays of the current Moment.js locale 2.3.0+
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/06-i18n/07-listing-
months-weekdays.md)
moment.months()
moment.monthsShort()
moment.weekdays()
moment.weekdaysShort()
moment.weekdaysMin()
... | |
Moment_js_Documentation/javadateformat_53_0.txt |
## Java DateFormat Example: getDateInstance(int style, Locale locale) | |
Moment_js_Documentation/simpledateformathtml_65_0.txt | The examples shown so far in this tutorial are all using the system default
time zone. That means, that in case you are formatting a date, the `
SimpleDateFormat ` will assume you want to format that date according to the
system's time zone. However, this may not always be what you want. | |
Moment_js_Documentation/DateFormathtml_122_0.txt | ` static [ DateFormat ](../../java/text/DateFormat.html "class in java.text")
` | ` [ getInstance ](../../java/text/DateFormat.html#getInstance--) () ` | |
Moment_js_Documentation/DateFormathtml_409_0.txt | Overrides: | |
Moment_js_Documentation/DateFormathtml_193_0.txt | public static final int SECOND_FIELD | |
Moment_js_Documentation/Moment_js_Documentation_150_0.txt | ### Java DateFormat Parser
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/10-plugins/03-jdateformatparser.md)
npm install moment-jdateformatparser
If you want to work with the ` java.text.DateFormat ` you can use this plugin.
For example,
moment("2013-12-2... | |
Moment_js_Documentation/javasimpledateformat_69_0.txt | * How to choose a cloud provider | |
Moment_js_Documentation/DateFormathtml_263_0.txt | Overrides Format. Formats a time object into a time string. Examples of time
objects are a time value expressed in milliseconds and a Date object. | |
Moment_js_Documentation/DateFormathtml_307_0.txt | [ ` Locale.getDefault(java.util.Locale.Category) ` ](../../java/util/Locale.html#getDefault-java.util.Locale.Category-) , [ ` Locale.Category.FORMAT ` ](../../java/util/Locale.Category.html#FORMAT)
* #### getTimeInstance | |
Moment_js_Documentation/javasimpledateformat_232_0.txt | Sign up for Infrastructure as a Newsletter. | |
Moment_js_Documentation/simpledateformathtml_1_0.txt | Tech & Media Labs | |
Moment_js_Documentation/javasimpledateformat_67_0.txt | * Cloud cost optimization best practices | |
Moment_js_Documentation/DateFormathtml_230_0.txt | Useful constant for zero-based HOUR field alignment. Used in FieldPosition of
date/time formatting. HOUR0_FIELD is used for the zero-based 12-hour clock.
For example, 11:30 PM + 1 hour results in 00:30 AM. | |
Moment_js_Documentation/Moment_js_Documentation_47_0.txt | ### Day of Year 2.0.0+
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/02-get-
set/09-day-of-year.md)
moment().dayOfYear(Number);
moment().dayOfYear(); // Number
Gets or sets the day of the year.
Accepts numbers from 1 to 366. If the range is exceeded, it will bubble... | |
Moment_js_Documentation/DateFormathtml_65_0.txt | Useful constant for zero-based HOUR field alignment. | |
Moment_js_Documentation/DateFormathtml_264_0.txt | Specified by: | |
Moment_js_Documentation/DateFormathtml_250_0.txt | Constant for short style pattern. | |
Moment_js_Documentation/simpledateformathtml_33_0.txt | String pattern = "yyyy-MM-dd";
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern); | |
Moment_js_Documentation/javasimpledateformat_18_0.txt | * [ MongoDB ](/products/managed-databases-mongodb)
* [ Kafka ](/products/managed-databases-kafka)
* [ MySQL ](/products/managed-databases-mysql)
* [ PostgreSQL ](/products/managed-databases-postgresql)
* [ Managed Databases for Redis® ](/products/managed-databases-redis) | |
Moment_js_Documentation/simpledateformathtml_67_0.txt | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ"); | |
Moment_js_Documentation/simpledateformathtml_44_0.txt | You can use the following symbols in your formatting pattern: | |
Moment_js_Documentation/javasimpledateformat_168_0.txt | **Reference:** | |
Moment_js_Documentation/javasimpledateformat_64_0.txt | * Resources | |
Moment_js_Documentation/javasimpledateformat_106_0.txt | ### Using ` format ` | |
Moment_js_Documentation/javasimpledateformat_112_0.txt |
### Using ` getTimeInstance() ` | |
Moment_js_Documentation/javasimpledateformat_126_0.txt | Letter for Pattern | Date or Time component | Examples
---|---|---
G | Era designator | AD
y | Year | 2018 (yyyy), 18 (yy)
M | Month in year | July (MMMM), Jul (MMM), 07 (MM)
w | Results in week in year | 16
W | Results in week in month | 3
D | Gives the day count in the year | 266
d | Day... | |
Moment_js_Documentation/javasimpledateformat_175_0.txt | Pankaj | |
Moment_js_Documentation/javasimpledateformat_166_0.txt | ## Conclusion | |
aws_legacy_credentials_and_S3/powershelllambdacode_116_0.txt | Remove-LMFunctionConcurrency -FunctionName "MylambdaFunction123" | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_20_0.txt | $function:tabexpansion2 = $function:tabexpansion2 -replace 'End\r\n{' ,
'End { if ($null -ne $options) { $options += $global:options} else {$options =
$global:options}'
}
} | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_48_0.txt | [ Privacy Policy ](https://go.microsoft.com/fwlink/?LinkId=521839) | |
aws_legacy_credentials_and_S3/powershelllambdacode_56_0.txt | {"Version":"2012-10-17","Id":"default","Statement":[{"Sid":"xxxx","Effect":"Allow","Principal":{"Service":"sns.amazonaws.com"},"Action":"lambda:InvokeFunction","Resource":"arn:aws:lambda:us-east-1:123456789102:function:test"}]} | |
aws_legacy_credentials_and_S3/powershelllambdacode_51_0.txt | The following code example shows how to use ` Get-LMPolicy ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_34_0.txt |
**Output:** | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_37_0.txt | $policy = @"
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
"@
$role = New-IAMRole -RoleName "ROLE-RoleManager" -AssumeRolePolicyDocument $policy | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_48_0.txt | Now that you've got an IAM role and S3 bucket created along with all the
policies set, it's time to create the Lambda function. You _could_ create the
Lambda function by going to the AWS management console, but let's get meta and
build the Lambda PowerShell function with PowerShell. | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_42_0.txt | # ZXJzYWwtcm9vdC5jcmwwEwYDVR0lBAwwCgYIKwYBBQUHAwMwDgYDVR0PAQH/BAQD
# AgEGMCkGA1UdEQQiMCCkHjAcMRowGAYDVQQDExFTeW1hbnRlY1BLSS0xLTcyNDAd
# BgNVHQ4EFgQU1MAGIknrOUvdk+JcobhHdglyA1gwHwYDVR0jBBgwFoAUtnf6aUhH
# n1MS1cLqBzJ2B9GXBxkwDQYJKoZIhvcNAQELBQADggEBAH/ryqfqi3ZC6z6OIFQw
# 47e53PpIPhbHD0WVEM0nhqNm8wLtcfiqwlWXkXCD+VJ+Umk8yf... | |
aws_legacy_credentials_and_S3/powershelllambdacode_23_0.txt | The following code example shows how to use ` Get-LMAlias ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_69_0.txt |
* For API details, see [ ListProvisionedConcurrencyConfigs ](https://docs.aws.amazon.com/powershell/latest/reference) in _AWS Tools for PowerShell Cmdlet Reference_ . | |
aws_legacy_credentials_and_S3/pstoolsec2sghtml_18_0.txt | To view the initial configuration of the security group, use the ` Get-
EC2SecurityGroup ` cmdlet. | |
aws_legacy_credentials_and_S3/powershelllambdacode_66_0.txt | ** Tools for PowerShell ** | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_29_0.txt | # Amazon.Lambda.TracingMode
{
( $_ -eq "Publish-LMFunction/TracingConfig_Mode" ) -Or
( $_ -eq "Update-LMFunctionConfiguration/TracingConfig_Mode" )
}
{
$v = "Active" , "PassThrough"
break
} | |
aws_legacy_credentials_and_S3/pstoolsec2sghtml_46_0.txt | [ Document Conventions ](/general/latest/gr/docconventions.html) | |
aws_legacy_credentials_and_S3/powershelllambdacode_160_0.txt | Write-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -ProvisionedConcurrentExecution 20 -Qualifier "NewAlias1" | |
aws_legacy_credentials_and_S3/powershelllambdacode_132_0.txt |
**Example 2: Removes the supplied tags from a function. The cmdlet will prompt
for confirmation before proceeding unless the -Force switch is specified. Once
call to the service is made per supplied tag.** | |
aws_legacy_credentials_and_S3/powershelllambdacode_113_0.txt | The following code example shows how to use ` Remove-LMFunctionConcurrency ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_121_0.txt | $policy = Get-LMPolicy -FunctionName "MylambdaFunction123" -Select Policy | ConvertFrom-Json| Select-Object -ExpandProperty Statement
Remove-LMPermission -FunctionName "MylambdaFunction123" -StatementId $policy[0].Sid | |
aws_legacy_credentials_and_S3/powershelllambdacode_137_0.txt | **Example 1: This example updates the Configuration of an existing Lambda
function Alias. It updates the RoutingConfiguration value to shift 60% (0.6)
of traffic to version 1** | |
aws_legacy_credentials_and_S3/aws_legacy_credentials_1_1.txt | oleArn | The ARN of the role to assume for assume role credentials. For more information about creating and using roles, see [ IAM Roles ](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) in the _IAM User Guide_ .
SourceProfile | The name of the source profile to be used by assume role credentials... | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_24_0.txt | switch ( $( "$commandName/$parameterName" ) )
{
# Amazon.Lambda.EventSourcePosition
"New-LMEventSourceMapping/StartingPosition"
{
$v = "AT_TIMESTAMP" , "LATEST" , "TRIM_HORIZON"
break
} | |
aws_legacy_credentials_and_S3/powershelllambdacode_139_0.txt |
* For API details, see [ UpdateAlias ](https://docs.aws.amazon.com/powershell/latest/reference) in _AWS Tools for PowerShell Cmdlet Reference_ . | |
aws_legacy_credentials_and_S3/powershelllambdacode_108_0.txt | The following code example shows how to use ` Remove-LMFunction ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_50_0.txt | * For API details, see [ ListFunctions ](https://docs.aws.amazon.com/powershell/latest/reference) in _AWS Tools for PowerShell Cmdlet Reference_ . | |
aws_legacy_credentials_and_S3/powershelllambdacode_32_0.txt | **Example 1: This examples gets the Reserved concurrency for the Lambda
Function** | |
aws_legacy_credentials_and_S3/pstoolsec2sghtml_43_0.txt | IpProtocol : tcp
FromPort : 3389
ToPort : 3389
UserIdGroupPairs : {}
IpRanges : {203.0.113.25/32} | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_31_0.txt |
$bucket = New-S3Bucket -BucketName "awslambdapowershelldemo1"
Add-S3PublicAccessBlock -BucketName $bucket.BucketName -PublicAccessBlockConfiguration_BlockPublicAcl $true -PublicAccessBlockConfiguration_BlockPublicPolicy $true -PublicAccessBlockConfiguration_IgnorePublicAcl $true -PublicAccessBlockConfiguration_Restric... | |
aws_legacy_credentials_and_S3/powershelllambdacode_16_0.txt | The following code example shows how to use ` Get-LMAccountSetting ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_53_0.txt | **Example 1: This sample displays the Function policy of the Lambda function** | |
aws_legacy_credentials_and_S3/powershelllambdacode_0_0.txt | [ ](/pdfs/powershell/latest/userguide/aws-pst-
ug.pdf#powershell_lambda_code_examples "Open PDF") | |
aws_legacy_credentials_and_S3/powershelllambdacode_135_0.txt | The following code example shows how to use ` Update-LMAlias ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_126_0.txt | Remove-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -Qualifier "NewAlias1" | |
aws_legacy_credentials_and_S3/aws_s3_1_0.txt | [ ](/pdfs/powershell/latest/userguide/aws-pst-ug.pdf#pstools-s3-create-website
"Open PDF")
[ AWS ](https://aws.amazon.com) [ Documentation ](/index.html) [ AWS Tools for
PowerShell ](/powershell/index.html) [ User Guide ](pstools-welcome.html)
See Also
# Configure an Amazon S3 Bucket as a Website and Enable Logging... | |
aws_legacy_credentials_and_S3/powershelllambdacode_62_0.txt |
**Output:** | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_32_0.txt | Once the S3 bucket is created, you'll now have a place to store configuration
files. | |
aws_legacy_credentials_and_S3/powershelllambdacode_152_0.txt | The following code example shows how to use ` Write-LMFunctionConcurrency ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_7_0.txt | Each example includes a link to GitHub, where you can find instructions on how
to set up and run the code in context. | |
aws_legacy_credentials_and_S3/powershelllambdacode_43_0.txt | * For API details, see [ GetFunctionConfiguration ](https://docs.aws.amazon.com/powershell/latest/reference) in _AWS Tools for PowerShell Cmdlet Reference_ . | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_73_0.txt | The _managed.json_ file will include any ARNs for AWS Managed Policies you
want to attach. Finally, the file name key paths (e.g. POLICY-FullAdmin.json)
contain individual inline IAM Policies, with the file name as the policy name. | |
aws_legacy_credentials_and_S3/powershelllambdacode_164_0.txt | [ Document Conventions ](/general/latest/gr/docconventions.html) | |
aws_legacy_credentials_and_S3/powershelllambdacode_28_0.txt | AdditionalVersionWeights
------------------------
{[1, 0.6]} | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_22_0.txt | ## AWS Lambda PowerShell Demo: Permission Management | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_9_0.txt | #### [ 4.0.2.0 ](/packages/AWS.Tools.Lambda/4.0.2.0) | |
aws_legacy_credentials_and_S3/pstoolsec2sghtml_33_0.txt | PS > Get-EC2SecurityGroup -GroupId sg-5d293231 | |
aws_legacy_credentials_and_S3/howtosetupanawslambd_79_0.txt | Invoke-LMFunction -FunctionName $lambda.FunctionNameGet-IAMRole -RoleName "ROLE-Name" | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_37_0.txt | $v = @( '*' )
$properties = $type . GetProperties ( ( 'Instance' , 'Public' ,
'DeclaredOnly' ) ) . Name | Sort-Object
if ( $properties ) {
$v += ( $properties | ForEach-Object { $prefix \+ $_ } )
}
$parameters = $cmdletType . GetProperties ( ( 'Instance' , 'Public'
) ) | W... | |
aws_legacy_credentials_and_S3/AWSToolsLambdaComple_12_0.txt | $psMajorVersion = $PSVersionTable . PSVersion . Major
if ( $psMajorVersion -eq 2 )
{
Write-Verbose "Dynamic argument completion not supported in PowerShell
version 2; skipping load."
return
} | |
aws_legacy_credentials_and_S3/powershelllambdacode_14_0.txt | Add-LMResourceTag -Resource "arn:aws:lambda:us-west-2:123456789012:function:MyFunction" -Tag @{ "Washington" = "Olympia"; "Oregon" = "Salem"; "California" = "Sacramento" } | |
aws_legacy_credentials_and_S3/powershelllambdacode_65_0.txt | The following code example shows how to use ` Get-
LMProvisionedConcurrencyConfigList ` . | |
aws_legacy_credentials_and_S3/powershelllambdacode_172_0.txt | If you've got a moment, please tell us how we can make the documentation
better. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.