Jump to content

Current Calendar Week


Recommended Posts

Hi!

 

I've just made a simple workflow of my Alfred 1 extension to show the current calendar week, grab it here: 

 

http://uwh.se/alfred-current-calendar-week.html

 

Read this: 

The current timezone is set to Europe/Stockholm, please change it to your own after downloading the workflow.

 

Edit:

I've created two different alternatives, you can either choose to show the result as an inline result or an notification. 

 

Best Regards. 

Edited by funtrix
Link to comment

Hi!

 

I've just made a simple workflow of my Alfred 1 extension to show the current calendar week, grab it here: 

 

http://www.uwh.se/alfred-current-calendar-week.html

 

Read this: 

The current timezone is set to Europe/Stockholm, please change it to your own after downloading the workflow.

 

Edit:

I've created two different alternatives, you can either choose to show the result as an inline result or an notification. 

 

Best Regards. 

 

Have you tried using the 'date' command line utility instead of the PHP function? It would prevent users from needing to input their timezone manually.

 

The shell command

$ date "+%U"

would output the week number

Link to comment
  • 6 months later...

Have you tried using the 'date' command line utility instead of the PHP function? It would prevent users from needing to input their timezone manually.

 

The shell command

$ date "+%U"

would output the week number

 

In Sweden (and some other places) you would probably want to use the "ISO week number":

$ date "+%V"
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...