How to pass specific time through postmanHow do I format a Microsoft JSON date?How can I pretty-print JSON in a shell script?How do I test for an empty JavaScript object?How can I pretty-print JSON using JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I get ASP.NET Web API to return JSON instead of XML using Chrome?How do I write JSON data to a file?Laravel get the sent data to the requestAjax request keeps failing with bad request when Postman worksPostman Pre-request script
Uncovering the Accelerated Dragon opening
How do EVA suits manage water excretion?
What jurisdiction do Scottish courts have over the Westminster parliament?
Is there a reliable way to hide/convey a message in vocal expressions (speech, song,...)
When was the earliest opportunity the Voyager crew had to return to the Alpha quadrant?
Do they still use tiger roars in the 2019 "Lion King" movie?
How are aircraft depainted?
How to say "quirky" in German without sounding derogatory?
Are Democrats more likely to believe Astrology is a science?
Fight a biblical flood apart from building barriers
Telling my mother that I have anorexia without panicking her
Confirm the ending of a string
What's the biggest organic molecule that could have a smell?
Glue or not to glue boots
Relocation error, error code (127) after last updates
Can I disable a battery powered device by reversing half of its batteries?
A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?
Eccentric keepers
What is this unknown executable on my boot volume? Is it Malicious?
Why isn't `typename` required for a base class that is a nested type?
Why is the T-1000 humanoid?
Type leftwards arrow on macOS
Do all humans have an identical nucleotide sequence for certain proteins, e.g haemoglobin?
The Planck constant for mathematicians
How to pass specific time through postman
How do I format a Microsoft JSON date?How can I pretty-print JSON in a shell script?How do I test for an empty JavaScript object?How can I pretty-print JSON using JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I get ASP.NET Web API to return JSON instead of XML using Chrome?How do I write JSON data to a file?Laravel get the sent data to the requestAjax request keeps failing with bad request when Postman worksPostman Pre-request script
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time
I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not
$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),
I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it
json laravel-5 laravel-5.2 postman lumen
|
show 3 more comments
I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time
I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not
$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),
I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it
json laravel-5 laravel-5.2 postman lumen
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
Thats probably some value thatdate()
can't convert.
– thefallen
Mar 28 at 10:06
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
You can easily useCarbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is$request->cooked_time
.
– thefallen
Mar 28 at 10:22
|
show 3 more comments
I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time
I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not
$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),
I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it
json laravel-5 laravel-5.2 postman lumen
I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time
I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not
$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),
I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it
json laravel-5 laravel-5.2 postman lumen
json laravel-5 laravel-5.2 postman lumen
asked Mar 28 at 9:54
Pushpendra PalPushpendra Pal
237 bronze badges
237 bronze badges
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
Thats probably some value thatdate()
can't convert.
– thefallen
Mar 28 at 10:06
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
You can easily useCarbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is$request->cooked_time
.
– thefallen
Mar 28 at 10:22
|
show 3 more comments
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
Thats probably some value thatdate()
can't convert.
– thefallen
Mar 28 at 10:06
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
You can easily useCarbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is$request->cooked_time
.
– thefallen
Mar 28 at 10:22
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
Thats probably some value that
date()
can't convert.– thefallen
Mar 28 at 10:06
Thats probably some value that
date()
can't convert.– thefallen
Mar 28 at 10:06
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
You can easily use
Carbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time
.– thefallen
Mar 28 at 10:22
You can easily use
Carbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time
.– thefallen
Mar 28 at 10:22
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394636%2fhow-to-pass-specific-time-through-postman%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394636%2fhow-to-pass-specific-time-through-postman%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is the on line 51 in your PostController?
– thefallen
Mar 28 at 9:59
@thefallen same that $cooked_time request
– Pushpendra Pal
Mar 28 at 10:03
Thats probably some value that
date()
can't convert.– thefallen
Mar 28 at 10:06
how do i do it then if i want to pass cook time as 12:30:00
– Pushpendra Pal
Mar 28 at 10:16
You can easily use
Carbon
to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is$request->cooked_time
.– thefallen
Mar 28 at 10:22